src/Bridge/Console/Command/CacheClearCommand.php
public function execute(InputInterface $input, OutputInterface $output)
    {
        parent::execute($input, $output);

        $name = $input->getArgument('name');

        $output->writeln(sprintf('Clearing cache for pool "%s"...', $name));

        if ($this->registry->getCachePool($name)->clear()) {
            $output->writeln('<info>Cache pool has been successfully cleared.</info>');
        } else {
            $output->writeln(sprintf('<error>An error occurred while clearing cache pool "%s"</error>', $name));
        }
    }
public function execute(InputInterface $input, OutputInterface $output)
    {
        parent::execute($input, $output);

        $name = $input->getArgument('name');

        $output->writeln(sprintf('Clearing cache for pool "%s"...', $name));

        if ($this->registry->getCachePool($name)->clear()) {
            $output->writeln('<info>Cache pool has been successfully cleared.</info>');
        } else {
            $output->writeln(sprintf('<error>An error occurred while clearing cache pool "%s"</error>', $name));
        }
    }
{@inheritdoc}