App\Console\Commands\XeInstall::setBootCacheDirPermission PHP Method

setBootCacheDirPermission() private method

setBootCacheDirPermission
private setBootCacheDirPermission ( ) : void
return void
    private function setBootCacheDirPermission()
    {
        $bootCachePath = $this->getBasePath('bootstrap/cache');
        $bootCachePerm = '0707';
        if (!$this->noInteraction) {
            $this->line('Input directory permission for bootstrap cache.');
            $bootCachePerm = $this->ask('./bootstrap/cache directory permission', $bootCachePerm);
        } else {
            $this->line("passed");
        }
        $process = new Process("chmod -R {$bootCachePerm} {$bootCachePath}");
        $process->run();
        // executes after the command finishes
        if (!$process->isSuccessful()) {
            throw new \RuntimeException($process->getErrorOutput());
        }
    }