10000 [FrameworkBundle] Add command to delete an item from a cache pool by pierredup · Pull Request #26223 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] Add command to delete an item from a cache pool #26223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change warning to notice
  • Loading branch information
pierredup committed Feb 22, 2018
commit e556003ae244f8adfc6ac7c3f35f5c2efa88166d
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$cachePool = $this->poolClearer->getPool($pool);

if (!$cachePool->hasItem($key)) {
$io->warning(sprintf('Cache item "%s" does not exist in cache pool "%s".', $key, $pool));
$io->note(sprintf('Cache item "%s" does not exist in cache pool "%s".', $key, $pool));

return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function testCommandWithInValidKey()
$tester = $this->getCommandTester($this->getKernel());
$tester->execute(array('pool' => 'foo', 'key' => 'bar'));

$this->assertContains('[WARNING] Cache item "bar" does not exist in cache pool "foo".', $tester->getDisplay());
$this->assertContains('[NOTE] Cache item "bar" does not exist in cache pool "foo".', $tester->getDisplay());
}

public function testCommandDeleteFailed()
Expand Down
0