public function createService(ServiceLocatorInterface $container) { $parentContainer = $container->getServiceLocator() ?: $container; return $this($parentContainer, Forward::class); }