aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php')
-rw-r--r--src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php b/src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php
index 685e1672..45bd8c5f 100644
--- a/src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php
+++ b/src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php
@@ -20,18 +20,14 @@ class GenerateUrlHashesCommand extends ContainerAwareCommand
20 ->setName('wallabag:generate-hashed-urls') 20 ->setName('wallabag:generate-hashed-urls')
21 ->setDescription('Generates hashed urls for each entry') 21 ->setDescription('Generates hashed urls for each entry')
22 ->setHelp('This command helps you to generates hashes of the url of each entry, to check through API if an URL is already saved') 22 ->setHelp('This command helps you to generates hashes of the url of each entry, to check through API if an URL is already saved')
23 ->addArgument( 23 ->addArgument('username', InputArgument::OPTIONAL, 'User to process entries');
24 'username',
25 InputArgument::OPTIONAL,
26 'User to process entries'
27 );
28 } 24 }
29 25
30 protected function execute(InputInterface $input, OutputInterface $output) 26 protected function execute(InputInterface $input, OutputInterface $output)
31 { 27 {
32 $this->output = $output; 28 $this->output = $output;
33 29
34 $username = $input->getArgument('username'); 30 $username = (string) $input->getArgument('username');
35 31
36 if ($username) { 32 if ($username) {
37 try { 33 try {