예제 #1
0
 /**
  * Determine if the given abstract type has been bound
  * Overrides Container::bound
  * @param  string  $abstract
  * @return bool
  *
  */
 public function bound($abstract)
 {
     return isset($this->deferredServices[$abstract]) || parent::bound($abstract);
 }
 /**
  * Define the implementation for the contextual binding
  * @param  \Closure|string  $implementation
  * @return void
  *
  */
 public function give($implementation)
 {
     $this->container->addContextualBinding($this->concrete, $this->needs, $implementation);
 }