Skip to content

Commit 7c9097a

Browse files
committed
✨ added support for all v3 packages
1 parent d7314e9 commit 7c9097a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/CreateCommand.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
184184
return $this->leaf($input, $output, $directory);
185185
}
186186

187-
if ($preset === "skeleton" && $input->getOption("v3")) {
188-
return $this->skeleton3($input, $output, $directory);
187+
$installCommand = $composer . " create-project leafs/$preset " . basename($directory);
188+
189+
if ($input->getOption("v3")) {
190+
$installCommand .= " v3.x-dev";
189191
}
190192

191193
$commands = [
192-
$composer . " create-project leafs/$preset " . basename($directory)
194+
$installCommand,
193195
];
194196

195197
if ($input->getOption('no-ansi')) {

0 commit comments

Comments
 (0)