ordersRepository = $ordersRepository; $this->logger = $logger; parent::__construct(); } protected function configure(): void { $this ->addArgument('arg1', InputArgument::OPTIONAL, 'Argument description') ->addOption('option1', null, InputOption::VALUE_NONE, 'Option description') ; } protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); $hiltes = new Hiltes(); $hiltes->export('Test'); $io->success('Done!'); return Command::SUCCESS; } }