src/Viserio/Component/HttpFactory/Provider/HttpFactoryServiceProvider.php
public function getFactories(): array
    {
        return [
            RequestFactoryInterface::class => [self::class, 'createRequestFactory'],
            RequestFactory::class          => static function (ContainerInterface $container) {
                return $container->get(RequestFactoryInterface::class);
            },
            ResponseFactoryInterface::class => [self::class, 'createResponseFactory'],
            ResponseFactory::class          => static function (ContainerInterface $container) {
                return $container->get(ResponseFactoryInterface::class);
            },
            ServerRequestFactoryInterface::class => [self::class, 'createServerRequestFactory'],
            ServerRequestFactory::class          => static function (ContainerInterface $container) {
                return $container->get(ServerRequestFactoryInterface::class);
            },
            StreamFactoryInterface::class => [self::class, 'createStreamFactory'],
            StreamFactory::class          => static function (ContainerInterface $container) {
                return $container->get(StreamFactoryInterface::class);
            },
            UploadedFileFactoryInterface::class => [self::class, 'createUploadedFileFactory'],
            UploadedFileFactory::class          => static function (ContainerInterface $container) {
                return $container->get(UploadedFileFactoryInterface::class);
            },
            UriFactoryInterface::class => [self::class, 'createUriFactory'],
            UriFactory::class          => static function (ContainerInterface $container) {
                return $container->get(UriFactoryInterface::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            RequestFactoryInterface::class => [self::class, 'createRequestFactory'],
            RequestFactory::class          => static function (ContainerInterface $container) {
                return $container->get(RequestFactoryInterface::class);
            },
            ResponseFactoryInterface::class => [self::class, 'createResponseFactory'],
            ResponseFactory::class          => static function (ContainerInterface $container) {
                return $container->get(ResponseFactoryInterface::class);
            },
            ServerRequestFactoryInterface::class => [self::class, 'createServerRequestFactory'],
            ServerRequestFactory::class          => static function (ContainerInterface $container) {
                return $container->get(ServerRequestFactoryInterface::class);
            },
            StreamFactoryInterface::class => [self::class, 'createStreamFactory'],
            StreamFactory::class          => static function (ContainerInterface $container) {
                return $container->get(StreamFactoryInterface::class);
            },
            UploadedFileFactoryInterface::class => [self::class, 'createUploadedFileFactory'],
            UploadedFileFactory::class          => static function (ContainerInterface $container) {
                return $container->get(UploadedFileFactoryInterface::class);
            },
            UriFactoryInterface::class => [self::class, 'createUriFactory'],
            UriFactory::class          => static function (ContainerInterface $container) {
                return $container->get(UriFactoryInterface::class);
            },
        ];
    }
{@inheritdoc}