Zend Framework  3.0
Public Member Functions | List of all members
ViewResolverFactory Class Reference

Public Member Functions

 __invoke (ContainerInterface $container, $name, array $options=null)
 Create the aggregate view resolver.
 
 createService (ServiceLocatorInterface $container)
 Create and return ViewResolver instance.
 

Member Function Documentation

__invoke ( ContainerInterface  $container,
  $name,
array  $options = null 
)

Create the aggregate view resolver.

Creates a Zend and attaches the template map resolver and path stack resolver

Parameters
ContainerInterface$container
string$name
null | array$options
Returns
ViewResolver

Implements FactoryInterface.

createService ( ServiceLocatorInterface  $container)

Create and return ViewResolver instance.

For use with zend-servicemanager v2; proxies to __invoke().

Parameters
ServiceLocatorInterface$container
Returns
ViewResolver

Implements FactoryInterface.