Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 2.0.1
-
Fix Version/s: None
-
Component/s: Class Loading
-
Labels:None
Description
Consider the following code snippet:
$loader = new ClassLoader('DoctrineExtensions', "/path/to/vendor/doctrine2-extensions-beberlei/lib"); $loader->register(); $loader = new ClassLoader('DoctrineExtensions', "/path/to/vendor/doctrine2-extensions-srosato/lib"); $loader->register();
The latter will not be able to be loaded since the documentation specifies (with good reason) that class loaders do not fail silently. Is there a workaround for this issue?
Or maybe this is intentional, such as authors that write separate doctrine extensions (according to this exemple) must define their own namespace.