*/ class Module implements BootstrapListenerInterface, ConfigProviderInterface { /** * {@inheritDoc} */ public function onBootstrap(EventInterface $event) { /* @var $application \Zend\Mvc\Application */ $application = $event->getTarget(); $serviceManager = $application->getServiceManager(); $eventManager = $application->getEventManager(); $eventManager->attach($serviceManager->get('ZfrCors\Mvc\CorsRequestListener')); } /** * {@inheritDoc} */ public function getConfig() { return include __DIR__ . '/../../config/module.config.php'; } }