public function remove(BaseModuleInterface $module) { if (!$this->exists($module)) { throw new \RuntimeException($module->getFullyQualifiedName() . ' does not exist in this pool.'); } unset($this->pool[$this->getKey($module)]); }