1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-15 19:42:08 +00:00

Make all commands lazy

This commit is contained in:
Yassine Guedidi 2024-02-02 23:24:33 +01:00
parent 5aeb116d83
commit 7c4ca62eae
14 changed files with 59 additions and 82 deletions

View file

@ -14,6 +14,9 @@ use Wallabag\CoreBundle\Repository\UserRepository;
class ExportCommand extends Command
{
protected static $defaultName = 'wallabag:export';
protected static $defaultDescription = 'Export all entries for an user';
private EntryRepository $entryRepository;
private UserRepository $userRepository;
private EntriesExport $entriesExport;
@ -32,8 +35,6 @@ class ExportCommand extends Command
protected function configure()
{
$this
->setName('wallabag:export')
->setDescription('Export all entries for an user')
->setHelp('This command helps you to export all entries for an user')
->addArgument(
'username',