10 use Symfony\Component\Console\Command\Command;
11 use Symfony\Component\Console\Input\InputInterface;
12 use Symfony\Component\Console\Output\OutputInterface;
44 parent::__construct();
53 $this->setName(self::COMMAND_NAME)
54 ->setDescription(
'Disable the profiler.');
65 $this->filesystem->rm(
BP .
'/' . self::PROFILER_FLAG_FILE);
66 if (!$this->filesystem->fileExists(
BP .
'/' . self::PROFILER_FLAG_FILE)) {
67 $output->writeln(
'<info>'. self::SUCCESS_MESSAGE .
'</info>');
70 $output->writeln(
'<error>Something went wrong while disabling the profiler.</error>');
__construct(File $filesystem)
execute(InputInterface $input, OutputInterface $output)