diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-04-01 14:34:20 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-04-01 14:34:20 +0200 |
commit | c579ce2306297674c56376a2ab5c8ba66a272253 (patch) | |
tree | 03f8fdd7c7ee93fd0527d46f2690a81cf6d2d286 /src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php | |
parent | 8a6456629814039cfc623cdb279bcba06dacff50 (diff) | |
download | wallabag-c579ce2306297674c56376a2ab5c8ba66a272253.tar.gz wallabag-c579ce2306297674c56376a2ab5c8ba66a272253.tar.zst wallabag-c579ce2306297674c56376a2ab5c8ba66a272253.zip |
Some cleanup
Also, do not run the hashed_url migration into a Doctrine migration
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php | 8 |
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 { |