Ejemplo n.º 1
0
 /**
  * Returns true if the given service is defined.
  *
  * @param string $id The service identifier
  *
  * @return Boolean true if the service is defined, false otherwise
  *
  * @api
  * @since 3.1.0
  */
 public function has($id)
 {
     return $this->_delegate->has($id);
 }
Ejemplo n.º 2
0
 /**
  * Returns true if the given service is defined.
  *
  * @param string $id The service identifier
  *
  * @return bool    true if the service is defined, false otherwise
  *
  * @api
  */
 public function has($id)
 {
     $id = strtolower($id);
     return isset($this->definitions[$id]) || isset($this->aliasDefinitions[$id]) || parent::has($id);
 }