forked from wallabag/wallabag
Use FQCN as service name for helper services
This commit is contained in:
@ -8,6 +8,7 @@ use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
use Wallabag\CoreBundle\Helper\DownloadImages;
|
||||
|
||||
class CleanDownloadedImagesCommand extends ContainerAwareCommand
|
||||
{
|
||||
@ -34,7 +35,7 @@ class CleanDownloadedImagesCommand extends ContainerAwareCommand
|
||||
$io->text('Dry run mode <info>enabled</info> (no images will be removed)');
|
||||
}
|
||||
|
||||
$downloadImages = $this->getContainer()->get('wallabag_core.entry.download_images');
|
||||
$downloadImages = $this->getContainer()->get(DownloadImages::class);
|
||||
$baseFolder = $downloadImages->getBaseFolder();
|
||||
|
||||
$io->text('Retrieve existing images');
|
||||
|
||||
@ -8,6 +8,7 @@ use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use Wallabag\CoreBundle\Helper\EntriesExport;
|
||||
use Wallabag\UserBundle\Repository\UserRepository;
|
||||
|
||||
class ExportCommand extends ContainerAwareCommand
|
||||
@ -57,7 +58,7 @@ class ExportCommand extends ContainerAwareCommand
|
||||
}
|
||||
|
||||
try {
|
||||
$data = $this->getContainer()->get('wallabag_core.helper.entries_export')
|
||||
$data = $this->getContainer()->get(EntriesExport::class)
|
||||
->setEntries($entries)
|
||||
->updateTitle('All')
|
||||
->updateAuthor('All')
|
||||
|
||||
@ -9,6 +9,7 @@ use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use Wallabag\CoreBundle\Event\EntrySavedEvent;
|
||||
use Wallabag\CoreBundle\Helper\ContentProxy;
|
||||
use Wallabag\UserBundle\Repository\UserRepository;
|
||||
|
||||
class ReloadEntryCommand extends ContainerAwareCommand
|
||||
@ -64,7 +65,7 @@ class ReloadEntryCommand extends ContainerAwareCommand
|
||||
|
||||
$progressBar = $io->createProgressBar($nbEntries);
|
||||
|
||||
$contentProxy = $this->getContainer()->get('wallabag_core.content_proxy');
|
||||
$contentProxy = $this->getContainer()->get(ContentProxy::class);
|
||||
$em = $this->getContainer()->get('doctrine')->getManager();
|
||||
$dispatcher = $this->getContainer()->get('event_dispatcher');
|
||||
|
||||
|
||||
@ -8,6 +8,7 @@ use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use Wallabag\CoreBundle\Helper\RuleBasedTagger;
|
||||
use Wallabag\UserBundle\Repository\UserRepository;
|
||||
|
||||
class TagAllCommand extends ContainerAwareCommand
|
||||
@ -36,7 +37,7 @@ class TagAllCommand extends ContainerAwareCommand
|
||||
|
||||
return 1;
|
||||
}
|
||||
$tagger = $this->getContainer()->get('wallabag_core.rule_based_tagger');
|
||||
$tagger = $this->getContainer()->get(RuleBasedTagger::class);
|
||||
|
||||
$io->text(sprintf('Tagging entries for user <info>%s</info>...', $user->getUserName()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user