Zend\Mvc\Controller\Plugin\Service\ForwardFactory::createService PHP Method

createService() public method

For use with zend-servicemanager v2; proxies to __invoke().
public createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Forward
$container Zend\ServiceManager\ServiceLocatorInterface
return Zend\Mvc\Controller\Plugin\Forward
    public function createService(ServiceLocatorInterface $container)
    {
        $parentContainer = $container->getServiceLocator() ?: $container;
        return $this($parentContainer, Forward::class);
    }