From 7c9097aa43b9d72d4c7a398c383be555b9f19662 Mon Sep 17 00:00:00 2001 From: Michael Darko Date: Mon, 15 Nov 2021 07:26:39 +0000 Subject: [PATCH] :sparkles: added support for all v3 packages --- src/CreateCommand.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/CreateCommand.php b/src/CreateCommand.php index 45a0096..7a72697 100644 --- a/src/CreateCommand.php +++ b/src/CreateCommand.php @@ -184,12 +184,14 @@ protected function execute(InputInterface $input, OutputInterface $output) return $this->leaf($input, $output, $directory); } - if ($preset === "skeleton" && $input->getOption("v3")) { - return $this->skeleton3($input, $output, $directory); + $installCommand = $composer . " create-project leafs/$preset " . basename($directory); + + if ($input->getOption("v3")) { + $installCommand .= " v3.x-dev"; } $commands = [ - $composer . " create-project leafs/$preset " . basename($directory) + $installCommand, ]; if ($input->getOption('no-ansi')) {