fixes #2906
This commit is contained in:
parent
34f1b5893c
commit
1eb5583168
@ -77,12 +77,12 @@ class MetadataFactory
|
||||
if (class_exists($class)) {
|
||||
$r = $all[0]->getReflectionClass();
|
||||
$path = $this->getBasePathForClass($class, $r->getNamespacename(), dirname($r->getFilename()));
|
||||
$metadata->setNamespace($r->getNamespacename());
|
||||
} elseif (!$path) {
|
||||
throw new \RuntimeException(sprintf('Unable to determine where to save the "%s" class (use the --path option).', $class));
|
||||
}
|
||||
|
||||
$metadata->setPath($path);
|
||||
$metadata->setNamespace($r->getNamespacename());
|
||||
|
||||
return $metadata;
|
||||
}
|
||||
|
Reference in New Issue
Block a user