public getInstallerManager ( ) : Puli\Manager\Api\Installer\InstallerManager | ||
리턴 | Puli\Manager\Api\Installer\InstallerManager | The installer manager. |
public function getInstallerManager()
{
if (!$this->started) {
throw new LogicException('Puli was not started');
}
if (!$this->installerManager && $this->context instanceof ProjectContext) {
$this->installerManager = new ModuleFileInstallerManager($this->getRootModuleFileManager(), $this->getModuleManager()->getModules());
}
return $this->installerManager;
}