title: Events not being triggered in Application Module
body: <p>I cannot seem to get my events to fire off. This is my first time playing around with them. If you look, i create an event in the <code>init</code> method and then i try to fire it off in the <code>onBootstrap</code> method. The event should produce a die with the string, but its not. any help would be appreciated.</p>
  
  <pre><code>namespace Application;
  
  use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
  use Zend\ModuleManager\Feature\ControllerProviderInterface;
  use Zend\ModuleManager\Feature\BootstrapListenerInterface;
  use Zend\ModuleManager\Feature\ServiceProviderInterface;
  use Zend\ModuleManager\Feature\ConfigProviderInterface;
  use Zend\ModuleManager\Feature\InitProviderInterface;
  use Zend\ModuleManager\Feature\ViewHelperProviderInterface;
  use Zend\ModuleManager\ModuleManagerInterface;
  use Zend\Mvc\ModuleRouteListener;
  use Zend\Mvc\MvcEvent;
  use Zend\EventManager\EventInterface;
  use Doctrine\DBAL\DriverManager;
  
  class Module implements 
      AutoloaderProviderInterface,
      ControllerProviderInterface,
      BootstrapListenerInterface,
      ServiceProviderInterface,
      ConfigProviderInterface,
      InitProviderInterface,
      ViewHelperProviderInterface
  {
      public function init(ModuleManagerInterface $manager)
      {
          $eventManager = $manager-&gt;getEventManager();
          $eventManager-&gt;attach('do',function($e){
              $event = $e-&gt;getName();
              $target = get_class($e-&gt;getTarget());
              $params = $e-&gt;getParams();
              $str = sprintf(
                  'Handled event \"%s\" on target \"%s\", with parameters %s',
                  $event,
                  $target,
                  json_encode($params)
              );
              die($str);
          });
      }
  
      public function onBootstrap(EventInterface $e)
      {
          $this-&gt;attachEventManagerToModuleRouteListener($e);        
          $this-&gt;setupDoctrineConnectionMappings($e);
          $eventManager = $e-&gt;getApplication()-&gt;getEventManager();
          $eventManager-&gt;trigger('do',$this,array('j','o','n'));
      }
  
      public function getConfig()
      {
          return array_merge( 
              include __DIR__ . '/config/module.config.php',
              include __DIR__ . '/config/routes.config.php'            
          );
      }
  
      public function getServiceConfig()
      {
          return include __DIR__ . '/config/services.config.php';
      }
  
      public function getControllerConfig()
      {
          return include __DIR__ . '/config/controllers.config.php';
      }
  
      public function getViewHelperConfig()
      {
          return include __DIR__ . '/config/view.config.php';
      }
  
      public function getAutoloaderConfig()
      {
          return array(
              'Zend\Loader\StandardAutoloader' =&gt; array(
                  'namespaces' =&gt; array(
                      __NAMESPACE__ =&gt; __DIR__ . '/src/' . __NAMESPACE__                    
                  ),
              ),
          );
      }
  
      private function attachEventManagerToModuleRouteListener(MvcEvent $e)
      {
          $eventManager        = $e-&gt;getApplication()-&gt;getEventManager();
          $moduleRouteListener = new ModuleRouteListener();
          $moduleRouteListener-&gt;attach($eventManager);
      }
  
      private function setupDoctrineConnectionMappings(MvcEvent $e)
      {
          $driver = $e-&gt;getApplication()-&gt;getServiceManager()-&gt;get('doctrine.connection.orm_default');
          $platform = $driver-&gt;getDatabasePlatform();
          $platform-&gt;registerDoctrineTypeMapping('enum', 'string');
          $platform-&gt;registerDoctrineTypeMapping('set', 'string');
      }
  }
  </code></pre>