PHP Class Zend\Mvc\Service\InjectTemplateListenerFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Show file Open project: zendframework/zend-mvc

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, $name, array $options = null ) : InjectTemplateListener {@inheritDoc}
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : InjectTemplateListener Create and return InjectTemplateListener instance

Method Details

__invoke() public method

Create and return an InjectTemplateListener instance.
public __invoke ( Interop\Container\ContainerInterface $container, $name, array $options = null ) : InjectTemplateListener
$container Interop\Container\ContainerInterface
$options array
return Zend\Mvc\View\Http\InjectTemplateListener

createService() public method

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