public function addDeps($modules) { $current = $this->getDeps(); $this->setDeps($current + (array) $modules); }