filesystem = $filesystem; } /** * {@inheritdoc} */ protected function configure() { $this->setName(self::COMMAND_NAME) ->setDescription('Disable the profiler.'); parent::configure(); } /** * {@inheritdoc} * @throws \InvalidArgumentException */ protected function execute(InputInterface $input, OutputInterface $output) { $this->filesystem->rm(BP . '/' . self::PROFILER_FLAG_FILE); if (!$this->filesystem->fileExists(BP . '/' . self::PROFILER_FLAG_FILE)) { $output->writeln(''. self::SUCCESS_MESSAGE . ''); return; } $output->writeln('Something went wrong while disabling the profiler.'); } }