protected function getViewFactory(IContainer $container) : IViewFactory
    {
        $resolver = new FileViewNameResolver();
        $resolver->registerPath(Config::get('paths', 'views.raw'));
        $resolver->registerExtension('fortune');
        $resolver->registerExtension('fortune.php');
        $resolver->registerExtension('php');
        $viewReader = $this->getViewReader($container);
        $container->bindInstance(IViewNameResolver::class, $resolver);
        $container->bindInstance(IViewReader::class, $viewReader);

        return new ViewFactory($resolver, $viewReader);
    }
protected function getViewFactory(IContainer $container) : IViewFactory
    {
        $resolver = new FileViewNameResolver();
        $resolver->registerPath(Config::get('paths', 'views.raw'));
        $resolver->registerExtension('fortune');
        $resolver->registerExtension('fortune.php');
        $resolver->registerExtension('php');
        $viewReader = $this->getViewReader($container);
        $container->bindInstance(IViewNameResolver::class, $resolver);
        $container->bindInstance(IViewReader::class, $viewReader);

        return new ViewFactory($resolver, $viewReader);
    }
protected function getViewFactory ( IContainer $ container ) : IViewFactory { $ resolver = new FileViewNameResolver ( ) ; $ resolver -> registerPath ( Config :: get ( 'paths' , 'views.raw' ) ) ; $ resolver -> registerExtension ( 'fortune' ) ; $ resolver -> registerExtension ( 'fortune.php' ) ; $ resolver -> registerExtension ( 'php' ) ; $ viewReader = $ this -> getViewReader ( $ container ) ; $ container -> bindInstance ( IViewNameResolver :: class , $ resolver ) ; $ container -> bindInstance ( IViewReader :: class , $ viewReader ) ; return new ViewFactory ( $ resolver , $ viewReader ) ; }
Gets the view view factory
To use a different view factory than the one returned here, extend this class and override this method

@param IContainer $container The dependency injection container
@return IViewFactory The view factory
Gets the view view factory To use a different view factory than the one returned here extend this class and override this method