|
@@ -109,11 +109,11 @@ abstract class DoctrineODMCommand extends Command
|
|
|
protected function findBasePathForBundle($bundle)
|
|
|
{
|
|
|
$path = str_replace('\\', '/', $bundle->getNamespace());
|
|
|
- $search = str_replace('\\','/',$bundle->getPath());
|
|
|
- $destination = str_replace('/'.$path, "", $search, $c);
|
|
|
+ $search = str_replace('\\', '/', $bundle->getPath());
|
|
|
+ $destination = str_replace('/'.$path, '', $search, $c);
|
|
|
|
|
|
if ($c != 1) {
|
|
|
- throw new \RuntimeException("Can't find base path for bundle. Path: $path , Destination: $destination");
|
|
|
+ throw new \RuntimeException('Can\'t find base path for bundle (path: "$path", destination: "$destination").');
|
|
|
}
|
|
|
|
|
|
return $destination;
|