This commit is contained in:
mmoeller
2023-01-05 10:44:38 +01:00
parent b992fd42ba
commit 9d349584ac
35 changed files with 3400 additions and 2666 deletions

View File

@@ -36,13 +36,19 @@ class HiltesExportCommand extends Command
;
}
/**
* Schreibt die Hiltes Expport Datei
* @param InputInterface $input
* @param OutputInterface $output
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
$hiltes = new Hiltes();
$hiltes->export('Test');
$hiltes->export('Test Test');
$io->success('Done!');

View File

@@ -2,6 +2,7 @@
namespace App\Command;
use App\Helper\Hiltes;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
@@ -10,9 +11,11 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\Finder\Finder;
#[AsCommand(
name: 'hiltes:import',
description: 'Add a short description for your command',
description: 'Importiert die Bestandsdaten von Hiltes',
)]
class HiltesImportCommand extends Command
{
@@ -33,9 +36,10 @@ class HiltesImportCommand extends Command
$io->note(sprintf('You passed an argument: %s', $arg1));
}
if ($input->getOption('option1')) {
// ...
}
$hiltes = new Hiltes();
$hiltes->import();
$io->success('You have a new command! Now make it your own! Pass --help to see your options.');