public function onBootstrap(EventInterface $e)
    {
        /* @var $application \Zend\Mvc\Application */
        $application = $e->getTarget();
        $serviceManager = $application->getServiceManager();
        $eventManager = $application->getEventManager();

        $eventManager->attachAggregate($serviceManager->get('Mailer\Mvc\PasswordRecoveryListener'));
        $eventManager->attachAggregate($serviceManager->get('Mailer\Mvc\PasswordRecoveredListener'));
        $eventManager->attachAggregate($serviceManager->get('Mailer\Mvc\UserRegistrationListener'));
        $eventManager->attachAggregate($serviceManager->get('Mailer\Mvc\UserActivationListener'));
        $eventManager->attachAggregate($serviceManager->get('Mailer\Mvc\UserContactListener'));
        $eventManager->attachAggregate($serviceManager->get('Mailer\Mvc\ClassifiedAnswerListener'));
        $eventManager->attachAggregate($serviceManager->get('Mailer\Mvc\ClassifiedCreatedListener'));
        $eventManager->attachAggregate($serviceManager->get('Mailer\Mvc\ClassifiedActivatedListener'));
        $eventManager->attachAggregate($serviceManager->get('Mailer\Mvc\ClassifiedExpiredListener'));
    }