Bolt\Provider\EventListenerServiceProvider::boot PHP Method

boot() public method

public boot ( Silex\Application $app )
$app Silex\Application
    public function boot(Application $app)
    {
        /** @var EventDispatcherInterface $dispatcher */
        $dispatcher = $app['dispatcher'];
        $listeners = ['general', 'exception', 'not_found', 'snippet', 'redirect', 'flash_logger', 'zone_guesser', 'pager'];
        foreach ($listeners as $name) {
            if (isset($app['listener.' . $name])) {
                $dispatcher->addSubscriber($app['listener.' . $name]);
            }
        }
    }
EventListenerServiceProvider