createService() public method

Proxies to __invoke().
public createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Application
$container Zend\ServiceManager\ServiceLocatorInterface
return Zend\Mvc\Application
 /**
  * Create an EventManager instance
  *
  * Creates a new EventManager instance, seeding it with a shared instance
  * of SharedEventManager.
  *
  * @param  ServiceLocatorInterface $serviceLocator
  * @return EventManager
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $application = parent::createService($serviceLocator);
     $eventManager = $application->getEventManager();
     $eventManager->attach(MvcEvent::EVENT_BOOTSTRAP, array($this, 'onApplicationBootstrap'), 1000);
     return $application;
 }