Zend\Mvc\Service\ViewFeedStrategyFactory::__invoke PHP Method

__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
    public function __invoke(ContainerInterface $container, $name, array $options = null)
    {
        return new FeedStrategy($container->get('ViewFeedRenderer'));
    }
ViewFeedStrategyFactory