protected _switchOff ( Symfony\Component\Console\Output\OutputInterface $output, string $flagFile ) | ||
$output | Symfony\Component\Console\Output\OutputInterface | |
$flagFile | string |
protected function _switchOff($output, $flagFile)
{
if (file_exists($flagFile)) {
if (!unlink($flagFile)) {
throw new \RuntimeException('maintenance.flag file is not removable.');
}
}
$output->writeln('Maintenance mode <info>off</info>');
}