public function boot(Application $app) { $this->container = $app; $this->container['dispatcher']->addSubscriber($this); $this->subscribe($this->container['dispatcher']); }