public function boot(Application $app) { $app['config']->doReplacements(); /** @var EventDispatcherInterface $dispatcher */ $dispatcher = $app['dispatcher']; $dispatcher->addSubscriber($app['config.listener']); }