Zend\Mvc\Service\ViewPrefixPathStackResolverFactory::__invoke PHP Method

__invoke() public method

Creates a Zend\View\Resolver\PrefixPathStackResolver and populates it with the ['view_manager']['prefix_template_path_stack']
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\View\Resolver\PrefixPathStackResolver
$container Interop\Container\ContainerInterface
$name string
$options array
return Zend\View\Resolver\PrefixPathStackResolver
    public function __invoke(ContainerInterface $container, $name, array $options = null)
    {
        $config = $container->get('config');
        $prefixes = [];
        if (isset($config['view_manager']['prefix_template_path_stack'])) {
            $prefixes = $config['view_manager']['prefix_template_path_stack'];
        }
        return new PrefixPathStackResolver($prefixes);
    }
ViewPrefixPathStackResolverFactory