src/Viserio/Component/View/Provider/ViewServiceProvider.php
public function getFactories(): array
    {
        return [
            EngineResolver::class  => [self::class, 'createEngineResolver'],
            'view.engine.resolver' => static function (ContainerInterface $container) {
                return $container->get(EngineResolver::class);
            },
            FinderContract::class => [self::class, 'createViewFinder'],
            ViewFinder::class     => static function (ContainerInterface $container) {
                return $container->get(FinderContract::class);
            },
            'view.finder' => static function (ContainerInterface $container) {
                return $container->get(FinderContract::class);
            },
            FactoryContract::class => [self::class, 'createViewFactory'],
            ViewFactory::class     => static function (ContainerInterface $container) {
                return $container->get(FactoryContract::class);
            },
            'view' => static function (ContainerInterface $container) {
                return $container->get(FactoryContract::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            EngineResolver::class  => [self::class, 'createEngineResolver'],
            'view.engine.resolver' => static function (ContainerInterface $container) {
                return $container->get(EngineResolver::class);
            },
            FinderContract::class => [self::class, 'createViewFinder'],
            ViewFinder::class     => static function (ContainerInterface $container) {
                return $container->get(FinderContract::class);
            },
            'view.finder' => static function (ContainerInterface $container) {
                return $container->get(FinderContract::class);
            },
            FactoryContract::class => [self::class, 'createViewFactory'],
            ViewFactory::class     => static function (ContainerInterface $container) {
                return $container->get(FactoryContract::class);
            },
            'view' => static function (ContainerInterface $container) {
                return $container->get(FactoryContract::class);
            },
        ];
    }
{@inheritdoc}