Permalink
Browse files

Renaming of command and removing of wrong @throws docblock for method…

… flushDbForClient.

Removing of option --no-interaction because it exists as a default option
  • Loading branch information...
1 parent 57f7fd1 commit 398921371c9f9e0fe2677fdb6776f14873df7e96 @Sgoettschkes Sgoettschkes committed with Jun 27, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 Command/{RedisFlushCommand.php → RedisFlushdbCommand.php}
@@ -22,8 +22,9 @@
*
* @author Sebastian Göttschkes <sebastian.goettschkes@googlemail.com>
*/
-class RedisFlushCommand extends ContainerAwareCommand
+class RedisFlushdbCommand extends ContainerAwareCommand
{
+
/**
* @var \Symfony\Component\Console\Input\InputInterface
*/
@@ -42,8 +43,7 @@ protected function configure()
{
$this->setName('redis:flushdb')
->setDescription('Flushes the redis database using the redis flushdb command')
- ->addOption('client', null, InputOption::VALUE_REQUIRED, 'The name of the client as specified in the config', 'default')
- ->addOption('no-interaction', null, InputOption::VALUE_NONE, 'Proceeds without any user interaction');
+ ->addOption('client', null, InputOption::VALUE_REQUIRED, 'The name of the client as specified in the config', 'default');
}
/**
@@ -77,8 +77,6 @@ private function proceedingAllowed()
/**
* Getting the client from cmd option and flush's the db
- *
- * @throws \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException when the client does not match any configured client
*/
private function flushDbForClient()
{
@@ -93,4 +91,6 @@ private function flushDbForClient()
$this->output->writeln('<error>The client ' . $client . ' is not defined</error>');
}
}
+
}
+

0 comments on commit 3989213

Please sign in to comment.