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:
parent
5aeb116d83
commit
7c4ca62eae
14 changed files with 59 additions and 82 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue