diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-09 18:31:30 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-09 18:55:21 +0200 |
commit | 4d318f37555772e43906d917a1c8594cec040acf (patch) | |
tree | 57e03014699c511f33a9c89580fab7aeb7df8153 /src | |
parent | e39aec3e38144f1a2ddb0027ec724e3dfd6f53f1 (diff) | |
download | wallabag-4d318f37555772e43906d917a1c8594cec040acf.tar.gz wallabag-4d318f37555772e43906d917a1c8594cec040acf.tar.zst wallabag-4d318f37555772e43906d917a1c8594cec040acf.zip |
Add more log to tag:all
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/TagAllCommand.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Command/TagAllCommand.php b/src/Wallabag/CoreBundle/Command/TagAllCommand.php index db1a9ab7..3f9bb04d 100644 --- a/src/Wallabag/CoreBundle/Command/TagAllCommand.php +++ b/src/Wallabag/CoreBundle/Command/TagAllCommand.php | |||
@@ -34,10 +34,13 @@ class TagAllCommand extends ContainerAwareCommand | |||
34 | } | 34 | } |
35 | $tagger = $this->getContainer()->get('wallabag_core.rule_based_tagger'); | 35 | $tagger = $this->getContainer()->get('wallabag_core.rule_based_tagger'); |
36 | 36 | ||
37 | $output->write(sprintf('Tagging entries for user « <info>%s</info> »... ', $user->getUserName())); | 37 | $output->write(sprintf('Tagging entries for user « <comment>%s</comment> »... ', $user->getUserName())); |
38 | 38 | ||
39 | $entries = $tagger->tagAllForUser($user); | 39 | $entries = $tagger->tagAllForUser($user); |
40 | 40 | ||
41 | $output->writeln('<info>Done.</info>'); | ||
42 | $output->write(sprintf('Persist entries ... ', $user->getUserName())); | ||
43 | |||
41 | $em = $this->getDoctrine()->getManager(); | 44 | $em = $this->getDoctrine()->getManager(); |
42 | foreach ($entries as $entry) { | 45 | foreach ($entries as $entry) { |
43 | $em->persist($entry); | 46 | $em->persist($entry); |