public function removeComponent(IComponent $component)
	{
		$name = $component->getName();
		if (!isset($this->components[$name]) || $this->components[$name] !== $component) {
			throw new Nette\InvalidArgumentException("Component named '$name' is not located in this container.");
		}

		unset($this->components[$name]);
		$component->setParent(NULL);
	}
public function removeComponent(IComponent $component)
	{
		$name = $component->getName();
		if (!isset($this->components[$name]) || $this->components[$name] !== $component) {
			throw new Nette\InvalidArgumentException("Component named '$name' is not located in this container.");
		}

		unset($this->components[$name]);
		$component->setParent(NULL);
	}
public function removeComponent ( IComponent $ component ) { $ name = $ component -> getName ( ) ; if ( ! isset ( $ this -> components [ $ name ] ) || $ this -> components [ $ name ] !== $ component ) { throw new Nette \ InvalidArgumentException ( "Component named '$name' is not located in this container." ) ; } unset ( $ this -> components [ $ name ] ) ; $ component -> setParent ( NULL ) ; }
Removes a component from the IContainer.
@return void
Removes a component from the IContainer .