public static function extendViewFactory(
        ContainerInterface $container,
        ?FactoryContract $view = null
    ): ?FactoryContract {
        if ($view !== null) {
            // @var FactoryContract $view
            $view->addExtension('twig', 'twig');
        }

        return $view;
    }
public static function extendViewFactory(
        ContainerInterface $container,
        ?FactoryContract $view = null
    ): ?FactoryContract {
        if ($view !== null) {
            // @var FactoryContract $view
            $view->addExtension('twig', 'twig');
        }

        return $view;
    }
public static function extendViewFactory ( ContainerInterface $ container , ? FactoryContract $ view = null ) : ? FactoryContract { if ( $ view !== null ) { // @var FactoryContract $view $ view -> addExtension ( 'twig' , 'twig' ) ; } return $ view ; }
Extend ViewFactory.

@param \Psr\Container\ContainerInterface             $container
@param null|\Viserio\Component\Contract\View\Factory $view

@return null|\Viserio\Component\Contract\View\Factory
Extend ViewFactory .