PHP Class Zend\Mvc\Service\ViewTemplateMapResolverFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Exibir arquivo Open project: zendframework/zend-mvc

Public Methods

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

Method Details

__invoke() public method

Creates a Zend\View\Resolver\AggregateResolver and populates it with the ['view_manager']['template_map']
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\View\Resolver\TemplateMapResolver
$container Interop\Container\ContainerInterface
$name string
$options array
return Zend\View\Resolver\TemplateMapResolver

createService() public method

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