protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface |
protected function execute(InputInterface $input, OutputInterface $output)
{
if (!is_file('.env')) {
$output->writeln('No .env file found');
return;
}
if (!unlink('.env')) {
throw new \Exception('Error deleting .env file');
}
$output->writeln('Deleted file .env');
}