PHP Class Zend\Mvc\Service\ViewTemplatePathStackFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Show file Open project: zendframework/zend-mvc

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\View\Resolver\TemplatePathStack Create the template path stack view resolver
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\View\Resolver\TemplatePathStack Create and return ViewResolver\TemplatePathStack instance

Method Details

__invoke() public method

Creates a Zend\View\Resolver\TemplatePathStack and populates it with the ['view_manager']['template_path_stack'] and sets the default suffix with the ['view_manager']['default_template_suffix']
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\View\Resolver\TemplatePathStack
$container Interop\Container\ContainerInterface
$name string
$options array
return Zend\View\Resolver\TemplatePathStack

createService() public method

For use with zend-servicemanager v2; proxies to __invoke().
public createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\View\Resolver\TemplatePathStack
$container Zend\ServiceManager\ServiceLocatorInterface
return Zend\View\Resolver\TemplatePathStack