public function boot(Application $app) { /** @var \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher */ $dispatcher = $app['dispatcher']; $dispatcher->addSubscriber($this); }