Ejemplo n.º 1
0
 /**
  * Register Service Provider.
  *
  * @param ServiceProviderInterface $provider Service provider
  * @param array $values Optional values to register in the container
  *
  * @return $this
  */
 public function register(ServiceProviderInterface $provider, array $values = array())
 {
     $this->providers[] = $provider;
     $provider->register($this);
     foreach ($values as $key => $value) {
         $this[$key] = $value;
     }
     return $this;
 }
 public function registerServices(ServiceProviderInterface $serviceProvider)
 {
     $serviceProvider->register($this->container);
 }