Skip to content

Commit 1a0da79

Browse files
Apply suggestions from code review
Co-authored-by: David Buchmann <[email protected]>
1 parent 1a3d0c5 commit 1a0da79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Command/ClearCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Console\Output\OutputInterface;
1818

1919
/**
20-
* A command to trigger cache invalidation by path from the command line.
20+
* A command to clear the whole cache from the command line.
2121
*
2222
* @author Alexander Schranz <[email protected]>
2323
*/
@@ -45,10 +45,10 @@ protected function configure()
4545
{
4646
$this
4747
->setName(static::$defaultName) // BC with 2.8
48-
->setDescription('Invalidate the whole http cache.')
48+
->setDescription('Clear the HTTP cache.')
4949
->setHelp(
5050
<<<'EOF'
51-
The <info>%command.name%</info> command invalidates the whole cache in the configured caching proxies.
51+
The <info>%command.name%</info> command clears the whole cache or, if that is not supported, invalidates all cache entries in the configured caching proxies.
5252
5353
Example:
5454
@@ -71,7 +71,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7171
$this->getCacheManager()->invalidateRegex('.*');
7272
} else {
7373
$output->writeln(
74-
'<error>The configured http cache does not support "clear" or "invalidate".</error>'
74+
'<error>The configured HTTP cache does not support "clear" or "invalidate".</error>'
7575
);
7676

7777
return 1;

0 commit comments

Comments
 (0)