Merge pull request #8611 from ol0lll/fix/create-project-with-absolute-path
Create project with absolute path(fixes #8609)pull/8661/head
commit
919fa60579
|
@ -302,10 +302,9 @@ EOT
|
||||||
// if no directory was specified, use the 2nd part of the package name
|
// if no directory was specified, use the 2nd part of the package name
|
||||||
if (null === $directory) {
|
if (null === $directory) {
|
||||||
$parts = explode("/", $name, 2);
|
$parts = explode("/", $name, 2);
|
||||||
$directory = array_pop($parts);
|
$directory = getcwd() . DIRECTORY_SEPARATOR . array_pop($parts);
|
||||||
}
|
}
|
||||||
|
|
||||||
$directory = getcwd() . DIRECTORY_SEPARATOR . $directory;
|
|
||||||
$io->writeError('<info>Creating a "' . $packageName . '" project at "' . $directory . '"</info>');
|
$io->writeError('<info>Creating a "' . $packageName . '" project at "' . $directory . '"</info>');
|
||||||
|
|
||||||
$fs = new Filesystem();
|
$fs = new Filesystem();
|
||||||
|
|
Loading…
Reference in New Issue