Ejemplo n.º 1
0
 /**
  * Register a service provider to the container.
  *
  * @param   ServiceProviderInterface  $provider  The service provider to register.w
  *
  * @return  Container  This object for chaining.
  *
  * @since   1.0
  */
 public function registerServiceProvider(ServiceProviderInterface $provider)
 {
     $provider->register($this);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Register a service provider to the container.
  *
  * @param   ServiceProviderInterface $provider The service provider to register.
  * @param   string                   $alias    An optional alias for the service
  *
  * @return Container This object for chaining.
  *
  * @since   1.0
  */
 public function registerServiceProvider(ServiceProviderInterface $provider, $alias = null)
 {
     $provider->register($this, $alias);
     return $this;
 }