setDescription('Kompliliert die Platform und erstellt die .phar Datei'); } protected function execute(InputInterface $input, OutputInterface $output): int { // Deine Logik für den Compiler $output->writeln("Kompiliere die Platform..."); // mkdirs if (!is_dir(__DIR__ . "/../../../../" . 'build')) { mkdir(__DIR__ . "/../../../../" .'build'); } $compiler = new Compiler(__DIR__ . "/../../../../"); $compiler->addIndexFile("versa"); $compiler->addFile("composer.json"); $compiler->addDirectory("src", '!*.php'); $compiler->addDirectory("vendor"); $compiler->compile("build/versa.phar"); $output->writeln('Die .phar Datei wurde erfolgreich erstellt.'); return Command::SUCCESS; } }