src/DoctrineMigrationsProvider.php
public function boot(Application $app)
    {
        $console = $this->getConsole($app);

        if ($console) {
            $helperSet = $console->getHelperSet();

            foreach ($app['migrations.em_helper_set'] as $name => $helper) {
                if (false === $helperSet->has($name)) {
                    $helperSet->set($helper, $name);
                }
            }

            $console->addCommands($app['migrations.commands']);
        }
    }
public function boot(Application $app)
    {
        $console = $this->getConsole($app);

        if ($console) {
            $helperSet = $console->getHelperSet();

            foreach ($app['migrations.em_helper_set'] as $name => $helper) {
                if (false === $helperSet->has($name)) {
                    $helperSet->set($helper, $name);
                }
            }

            $console->addCommands($app['migrations.commands']);
        }
    }
Bootstraps the application.

This method is called after all services are registered
and should be used for "dynamic" configuration (whenever
a service must be requested).

@param Application $app A Silex application instance