src/Viserio/Component/Exception/Provider/HttpExceptionServiceProvider.php
public function getFactories(): array
    {
        return [
            HtmlDisplayer::class         => [self::class, 'createHtmlDisplayer'],
            JsonDisplayer::class         => [self::class, 'createJsonDisplayer'],
            JsonApiDisplayer::class      => [self::class, 'createJsonApiDisplayer'],
            SymfonyDisplayer::class      => [self::class, 'createSymfonyDisplayer'],
            ViewDisplayer::class         => [self::class, 'createViewDisplayer'],
            WhoopsPrettyDisplayer::class => [self::class, 'createWhoopsPrettyDisplayer'],
            WhoopsJsonDisplayer::class   => [self::class, 'createWhoopsJsonDisplayer'],
            VerboseFilter::class         => [self::class, 'createVerboseFilter'],
            ContentTypeFilter::class     => [self::class, 'createContentTypeFilter'],
            CanDisplayFilter::class      => [self::class, 'createCanDisplayFilter'],
            HttpHandlerContract::class   => [self::class, 'createExceptionHandler'],
            Handler::class               => static function (ContainerInterface $container) {
                return $container->get(HttpHandlerContract::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            HtmlDisplayer::class         => [self::class, 'createHtmlDisplayer'],
            JsonDisplayer::class         => [self::class, 'createJsonDisplayer'],
            JsonApiDisplayer::class      => [self::class, 'createJsonApiDisplayer'],
            SymfonyDisplayer::class      => [self::class, 'createSymfonyDisplayer'],
            ViewDisplayer::class         => [self::class, 'createViewDisplayer'],
            WhoopsPrettyDisplayer::class => [self::class, 'createWhoopsPrettyDisplayer'],
            WhoopsJsonDisplayer::class   => [self::class, 'createWhoopsJsonDisplayer'],
            VerboseFilter::class         => [self::class, 'createVerboseFilter'],
            ContentTypeFilter::class     => [self::class, 'createContentTypeFilter'],
            CanDisplayFilter::class      => [self::class, 'createCanDisplayFilter'],
            HttpHandlerContract::class   => [self::class, 'createExceptionHandler'],
            Handler::class               => static function (ContainerInterface $container) {
                return $container->get(HttpHandlerContract::class);
            },
        ];
    }
{@inheritdoc}