8000 bug #22159 [FrameworkBundle] Cache pool clear command requires at lea… · symfony/symfony@b1bfbcc · GitHub
[go: up one dir, main page]

Skip to content

Commit b1bfbcc

Browse files
committed
bug #22159 [FrameworkBundle] Cache pool clear command requires at least 1 pool (ro0NL)
This PR was submitted for the master branch but it was merged into the 3.2 branch instead (closes #22159). Discussion ---------- [FrameworkBundle] Cache pool clear command requires at least 1 pool | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes/no | Fixed tickets | #22047 | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> The commands help description already states this should be required. ``` The cache:pool:clear command clears the given cache pools or cache pool clearers. bin/console cache:pool:clear <cache pool or clearer 1> [...<cache pool or clearer N>] ``` So this could also be qualified a bugfix. Commits ------- a61797f [FrameworkBundle] Cache pool clear command requires at least 1 pool
2 parents fb56bcc + a61797f commit b1bfbcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/CachePoolClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure()
3333
$this
3434
->setName('cache:pool:clear')
3535
->setDefinition(array(
36-
new InputArgument('pools', InputArgument::IS_ARRAY, 'A list of cache pools or cache pool clearers'),
36+
new InputArgument('pools', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'A list of cache pools or cache pool clearers'),
3737
))
3838
->setDescription('Clears cache pools')
3939
->setHelp(<<<'EOF'

0 commit comments

Comments
 (0)
0