src/Silex/Provider/ServiceProvider.php
public function boot(Application $app)
    {
        foreach ($app['config']['services'] as $alias => $definition) {
            if (isset($definition['parameters'])) {
                foreach ($definition['parameters'] as $key => $value) {
                    $method = 'set' . ucfirst($key);
                    if (isset($app[$value])
                        && method_exists($app[$alias], $method)
                    ) {
                        $app[$alias]->$method($app[$value]);
                    } elseif ($key == 'container') {
                        $app[$alias]->setContainer($app);
                    } else {
                        $app[$alias] = $value;
                    }
                }
            }
        }
    }
public function boot(Application $app)
    {
        foreach ($app['config']['services'] as $alias => $definition) {
            if (isset($definition['parameters'])) {
                foreach ($definition['parameters'] as $key => $value) {
                    $method = 'set' . ucfirst($key);
                    if (isset($app[$value])
                        && method_exists($app[$alias], $method)
                    ) {
                        $app[$alias]->$method($app[$value]);
                    } elseif ($key == 'container') {
                        $app[$alias]->setContainer($app);
                    } else {
                        $app[$alias] = $value;
                    }
                }
            }
        }
    }
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 Application instance

@return void