PHP Class Zend\Mvc\Service\ViewManagerFactory

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 ) : ViewManager Create and return a view manager.
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : ViewManager Create and return HttpViewManager.

Method Details

__invoke() public method

Create and return a view manager.
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : ViewManager
$container Interop\Container\ContainerInterface
$name string
$options array
return Zend\Mvc\View\Http\ViewManager

createService() public method

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