Esempio n. 1
0
 /**
  * Checks to see if a binding key has been bound in current Container.
  * If not bound in the current Container, it will recursively search
  * parent Container's until it finds the $binding.
  *
  * @param string $binding The binding to check.
  * @param bool $lazy Check lazy loaded too?
  * @return bool
  */
 public function bound($binding, $lazy = true)
 {
     return isset($this->bindings[$binding]) or $lazy and isset($this->provides[$binding]) or isset($this->parent) and $this->parent->bound($binding, $lazy);
 }