예제 #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function unregisterAlias($alias)
 {
     if ($this->getAlias($alias) === null) {
         throw new ResourceUndefinedException("ServiceProvider alias for {$alias} is not registered.");
     }
     $this->container->remove($alias);
     unset($this->serviceAliases[$alias]);
 }