/* Decoded by unphp.net */ setContent($poolContent); goto B8674; Caadf: $poolReader = new PoolReader($poolDirectory); goto de920; A63e6: $pool->setPort($poolPort); goto Ce79c; f0bae: $poolBuilder = new PoolBuilder(); goto Ea6e5; d1967: $domainName = $this->site->getDomainName(); goto Daf44; facff: $phpSettings = $this->site->getPhpSettings(); goto d1967; Daf44: $phpVersion = $phpSettings->getPhpVersion(); goto Df643; d1609: $writePoolFileCommand->setFile($poolFile); goto ffadf; Bb962: $pool = new Pool(); goto abe5c; fe276: usort($pools, function ($a, $b) { return $a->getPort() < $b->getPort(); }); goto C788c; C788c: $latestPool = array_shift($pools); goto bba5f; abe5c: $pool->setName($domainName); goto dfb4a; B6263: $poolFile = sprintf("/etc/php/%s/fpm/pool.d/%s.conf", $phpVersion, $domainName); goto a83db; bba5f: $poolPort = $latestPool->getPort() + 1; goto Bb962; dfb4a: $pool->setUser($siteUser); goto Ab8df; Df643: $poolDirectory = sprintf("/etc/php/%s/fpm/pool.d/", $phpVersion); goto Caadf; Ea6e5: $poolContent = $poolBuilder->create($pool); goto B6263; Bbec1: $siteUser = $this->site->getUser(); goto facff; B8674: $this->commandExecutor->execute($writePoolFileCommand); goto Ca78f; a83db: $writePoolFileCommand = new WriteFileCommand(); goto d1609; Ce79c: $phpSettings->setPoolPort($poolPort); goto f0bae; de920: $pools = $poolReader->getPools(); goto fe276; Ab8df: $pool->setGroup($siteUser); goto A63e6; Ca78f: } public function createVarnishCacheStructure(array $varnishCacheSettings) { goto c48f8; D8161: $writeVarnishCacheSettingsFileCommand->setFile($varnishCacheSettingsFile); goto eede0; Fb5ef: $this->commandExecutor->execute($createVarnishCacheDirectoryCommand); goto d9339; E8238: $copyVarnishControllerFileCommand->setSourceFile($varnishControllerSourceFile); goto fd60a; c48f8: $varnishController = $varnishCacheSettings["controller"] ?? null; goto c0c78; ed8e8: $writeVarnishCachePurgeLogfileCommand->setContent(''); goto Fb5ef; b87ab: $varnishCacheDirectory = sprintf("/home/%s/.varnish-cache/", $siteUser); goto e42c0; e1fe6: $this->commandExecutor->execute($copyVarnishControllerFileCommand); goto De090; b70d3: unset($varnishCacheSettings["controller"]); goto D0841; D7bb8: $createVarnishCacheDirectoryCommand = new CreateDirectoryCommand(); goto C5b8a; c6119: $writeVarnishCachePurgeLogfileCommand->setFile($varnishCachePurgeLogfile); goto ed8e8; c8fa6: $writeVarnishCachePurgeLogfileCommand = new WriteFileCommand(); goto c6119; A3fc4: $writeVarnishCacheSettingsFileCommand = new WriteFileCommand(); goto D8161; fd60a: $copyVarnishControllerFileCommand->setDestinationFile($varnishCacheControllerFile); goto c2aa2; De090: $this->commandExecutor->execute($createVarnishCacheLogDirectoryCommand); goto Cbdc6; dc3b9: $siteUser = $this->site->getUser(); goto b87ab; C5b8a: $createVarnishCacheDirectoryCommand->setDirectory($varnishCacheDirectory); goto A3fc4; e42c0: $varnishCacheLogDirectory = sprintf("/home/%s/logs/varnish-cache/", $siteUser); goto Fd40a; eede0: $writeVarnishCacheSettingsFileCommand->setContent(json_encode($varnishCacheSettings, JSON_PRETTY_PRINT)); goto F467b; D0841: bf7dd: goto Eb833; af7ea: $createVarnishCacheLogDirectoryCommand->setDirectory($varnishCacheLogDirectory); goto c8fa6; Fd40a: $varnishCacheSettingsFile = sprintf("%s/settings.json", rtrim($varnishCacheDirectory, "/")); goto Bcde0; d9339: $this->commandExecutor->execute($writeVarnishCacheSettingsFileCommand); goto e1fe6; e6379: $varnishCacheControllerFile = sprintf("%s/controller.php", rtrim($varnishCacheDirectory, "/")); goto D7bb8; c0c78: if (!(true === isset($varnishCacheSettings["controller"]))) { goto bf7dd; } goto b70d3; Cbdc6: $this->commandExecutor->execute($writeVarnishCachePurgeLogfileCommand); goto c547a; c2aa2: $createVarnishCacheLogDirectoryCommand = new CreateDirectoryCommand(); goto af7ea; Eb833: $varnishControllerSourceFile = realpath(dirname(__FILE__) . sprintf("/../../../resources/varnish-cache/controller/%s/controller.php", $varnishController)); goto dc3b9; Bcde0: $varnishCachePurgeLogfile = sprintf("%s/purge.log", rtrim($varnishCacheLogDirectory, "/")); goto e6379; F467b: $copyVarnishControllerFileCommand = new CopyFileCommand(); goto E8238; c547a: } public function createIndexPhp(): void { goto Cf4d8; f15a7: $writeIndexPhpFileCommand->setContent(self::INDEX_PHP_TEMPLATE); goto d5703; b9f8f: $indexPhpFile = sprintf("%s/index.php", rtrim($rootDirectory, "/")); goto da022; d5703: $this->commandExecutor->execute($writeIndexPhpFileCommand); goto Bc6c0; Fc931: $writeIndexPhpFileCommand->setFile($indexPhpFile); goto f15a7; Cf4d8: $rootDirectory = $this->getRootDirectory(); goto b9f8f; da022: $writeIndexPhpFileCommand = new WriteFileCommand(); goto Fc931; Bc6c0: } public function reloadPhpFpmService() { goto a432d; a432d: $phpSettings = $this->site->getPhpSettings(); goto B2bf5; a216a: $this->reloadService($serviceName); goto cfb79; B2bf5: $phpVersion = $phpSettings->getPhpVersion(); goto Da419; Da419: $serviceName = sprintf("php%s-fpm", $phpVersion); goto a216a; cfb79: } } ?>