Ejemplo n.º 1
0
 /**
  * Checks if a given abstract has a binding (which is not through instance())
  *
  * @param  string  $abstract
  * @return bool
  */
 protected function hasBinding($abstract)
 {
     if (isset($this->bindings[$abstract])) {
         return true;
     }
     // If we don't have a concrete type for a given abstract, but have a parent,
     // task the parent to get the concrete binding:
     if ($this->parent) {
         return $this->parent->hasBinding($abstract);
     }
     return false;
 }