We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e958b9 commit 209711fCopy full SHA for 209711f
bootstrap/bootstrap.php
@@ -11,6 +11,22 @@
11
'php composer.phar install'.$nl);
12
}
13
14
+use Doctrine\Common\Annotations\AnnotationRegistry;
15
+
16
+AnnotationRegistry::registerLoader(function($class) use ($loader) {
17
+ $loader->loadClass($class);
18
19
+ // this was class_exists($class, false) i.e. do not autoload.
20
+ // this is required so that custom annotations (e.g. TreeUiBundle
21
+ // annotations) are autoloaded - but they should be found by the
22
+ // composer loader above.
23
+ //
24
+ // This probably slows things down.
25
26
+ // @todo: Fix me.
27
+ return class_exists($class);
28
+});
29
30
if (!defined('CMF_TEST_ROOT_DIR')) {
31
define('CMF_TEST_ROOT_DIR', realpath(__DIR__.'/..'));
32
0 commit comments