public function removeService($id) { if ($this->hasService($id)) { unset($this->serviceDefinitions[$id]); } }