Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
Fixing a bug where we required the vendor namespace in the exact wron…
Browse files Browse the repository at this point in the history
…g situation
  • Loading branch information
weaverryan committed Mar 23, 2015
1 parent a802785 commit 8ee423b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Command/GenerateBundleCommand.php
Expand Up @@ -374,10 +374,8 @@ protected function createBundleObject(InputInterface $input)
}

$shared = $input->getOption('shared');
// require the vendor namespace ONLY of it's not shared
$requireVendorNamespace = !$shared;

$namespace = Validators::validateBundleNamespace($input->getOption('namespace'), $requireVendorNamespace);
$namespace = Validators::validateBundleNamespace($input->getOption('namespace'), $shared);
if (!$bundleName = $input->getOption('bundle-name')) {
$bundleName = strtr($namespace, array('\\' => ''));
}
Expand Down

0 comments on commit 8ee423b

Please sign in to comment.