diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2016-10-09 21:27:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-09 21:27:47 +0200 |
commit | 47508f004fe9a17a8012187f37032f4155d507f4 (patch) | |
tree | 69e089f1bafa49a553b28cf2aefc4f5c0192697d /src/Wallabag/CoreBundle/Command/TagAllCommand.php | |
parent | e39aec3e38144f1a2ddb0027ec724e3dfd6f53f1 (diff) | |
parent | e08477803079d0097885e026797256da7fd30f6c (diff) | |
download | wallabag-47508f004fe9a17a8012187f37032f4155d507f4.tar.gz wallabag-47508f004fe9a17a8012187f37032f4155d507f4.tar.zst wallabag-47508f004fe9a17a8012187f37032f4155d507f4.zip |
Merge pull request #2410 from wallabag/tag-optim
Optimize tag list display
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/TagAllCommand.php')
-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); |