PhpSpec\ServiceContainer\IndexedServiceContainer::remove PHP Метод

remove() публичный Метод

Removes a service from the container
public remove ( string $id )
$id string
    public function remove($id)
    {
        if (!$this->has($id)) {
            throw new InvalidArgumentException(sprintf('Service "%s" is not defined.', $id));
        }
        unset($this->services[$id], $this->definitions[$id]);
    }