/** * check if the bean $beanName is defined in the application Context * @return boolean */ public function hasBean($beanName) { return $this->context->hasBeanDefinition($beanName); }