public function updatePackage(Models\Package $package) { if (!isset($this->packages[$package->getName()])) { throw new \Exception('Package ' . $package->getName() . ' does not exists'); } $this->packages[$package->getName()] = array('manifestPath' => $package->getPathManifest(), 'composerName' => $package->getComposerName(), 'state' => $package->getState(), 'packagePath' => $package->getPathPackage(), 'classesPath' => $package->getPathClasses()); }