public installEntryPoint ( string $entrypoint ) : boolean | ||
$entrypoint | string | the entrypoint name as it appears in project.xml |
Résultat | boolean | true if succeed, false if there are some errors |
public function installEntryPoint($entrypoint)
{
$this->startMessage();
if (!isset($this->epId[$entrypoint])) {
throw new \Exception("unknown entry point");
}
$epId = $this->epId[$entrypoint];
$ep = $this->entrypoints[$epId];
if ($ep->sameConfigAs) {
// let's copy the installation information of the other entry point
$values = $this->installerIni->getValues($ep->sameConfigAs);
$this->installerIni->setValues($values, $epId);
$this->ok('install.entrypoint.installed', $epId);
} else {
$resolver = new Resolver();
foreach ($ep->getLaunchers() as $name => $module) {
$resolverItem = $module->getResolverItem($epId);
$resolver->addItem($resolverItem);
}
$result = $this->_installModules($resolver, $ep, true);
}
$this->installerIni->save();
$this->endMessage();
return $result;
}