PHP Class Zend\Mvc\Service\HttpViewManagerFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
显示文件 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 for the HTTP environment
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : ViewManager Create and return HttpViewManager instance

Method Details

__invoke() public method

Create and return a view manager for the HTTP environment
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