diff --git a/src/Commands/BuildCommand.php b/src/Commands/BuildCommand.php index c7f1188..2b50f22 100644 --- a/src/Commands/BuildCommand.php +++ b/src/Commands/BuildCommand.php @@ -109,7 +109,7 @@ protected function execute(InputInterface $input, OutputInterface $output) // vendor/namespace $question = new Question("Namespace of package [{$defaultNamespace}]: ", $defaultNamespace); $this->info['NAMESPACE'] = $helper->ask($input, $output, $question); - $this->info['VENDOR'] = strtolower(strstr($this->info['NAMESPACE'], '\\', true)); + $this->info['VENDOR'] = strtolower(strstr($this->info['PACKAGE_NAME'], '/', true)); $this->info['PACKAGE'] = substr($this->info['PACKAGE_NAME'], strlen($this->info['VENDOR']) + 1); // description