Jelix\Installer\Installer::installEntryPoint PHP Method

installEntryPoint() public method

install and upgrade if needed, all modules for the given entry point. Only modules which have an access property > 0 are installed. Errors appeared during the installation are passed to the reporter.
public installEntryPoint ( string $entrypoint ) : boolean
$entrypoint string the entrypoint name as it appears in project.xml
return 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;
    }