PHP Class Zend\Mvc\Service\ViewResolverFactory

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\AggregateResolver Create the aggregate view resolver
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\View\Resolver\AggregateResolver Create and return ViewResolver\AggregateResolver instance

Method Details

__invoke() public method

Creates a Zend\View\Resolver\AggregateResolver and attaches the template map resolver and path stack resolver
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\View\Resolver\AggregateResolver
$container Interop\Container\ContainerInterface
$name string
$options array
return Zend\View\Resolver\AggregateResolver

createService() public method

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