Skip to content
Snippets Groups Projects
Commit 031b8570 authored by Demian Katz's avatar Demian Katz
Browse files

Avoid duplicate class declaration warning.

parent 5580aa60
No related merge requests found
......@@ -170,7 +170,9 @@ class Importer implements ServiceLocatorAwareInterface
$parts = explode('\\', $class);
$class = preg_replace('/[^A-Za-z0-9_]/', '', array_pop($parts));
$ns = implode('\\', $parts);
class_alias("$ns\\$class", $class);
if (!class_exists($class)) {
class_alias("$ns\\$class", $class);
}
}
$methods = get_class_methods($class);
if (method_exists($class, 'setServiceLocator')) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment