/** * {@inheritdoc} */ public function initialize(ContextInterface $context) { if ($context instanceof ApplicationAwareInterface) { $context->setApplication($this->application); } if ($context instanceof ServiceLocatorAwareInterface) { $context->setServiceLocator($this->application->getServiceManager()); } }