Esempio n. 1
0
 /**
  * Remove envelope for $beanName
  *
  * @param $beanName
  *
  * @throws OvoContainerException
  */
 public function removeBeanEnvelope($beanName)
 {
     $this->logger->debug('Find and remove bean envelope for bean with name ' . $beanName);
     $beanClass = $this->contextReader->getBeanClass($beanName);
     $beanScope = $this->contextReader->getBeanScope($beanName);
     $id = $this->getInternalReferenceId($beanClass, $beanName, $beanScope, $this->contextReferenceId);
     if (isset($this->beanEnvelopeRepository[$id])) {
         $this->logger->debug('Remove bean envelope with id ' . $id);
         unset($this->beanEnvelopeRepository[$id]);
     }
 }