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());
}
}