PHP Class Zend\Mvc\Service\ViewFeedStrategyFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Mostrar archivo Open project: zendframework/zend-mvc

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\View\Strategy\FeedStrategy Create and return the Feed view strategy
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\View\Strategy\FeedStrategy Create and return FeedStrategy instance

Method Details

__invoke() public method

Retrieves the ViewFeedRenderer service from the service locator, and injects it into the constructor for the feed strategy. It then attaches the strategy to the View service, at a priority of 100.
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\View\Strategy\FeedStrategy
$container Interop\Container\ContainerInterface
$name string
$options array
return Zend\View\Strategy\FeedStrategy

createService() public method

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