Exemplo n.º 1
0
 /**
  * Registers a service provider.
  *
  * @param \Silex\ServiceProviderInterface|ServiceProviderInterface $provider
  * @param array $values
  * @return Application
  */
 public function registerService($provider, array $values = array())
 {
     $this->providers[] = $provider;
     $provider->register($this);
     foreach ($values as $key => $value) {
         $this[$key] = $value;
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function boot(Silex\Application $app)
 {
     $this->provider->boot($app);
 }