Skip to content

Commit a05def3

Browse files
committed
Remove annotation registry loading
1 parent bcbabf5 commit a05def3

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

bootstrap/bootstrap.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,6 @@
1111
'php composer.phar install'.$nl);
1212
}
1313

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-
AnnotationRegistry::registerFile($vendorDir.'/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/Annotations/DoctrineAnnotations.php');
31-
3214
if (!defined('CMF_TEST_ROOT_DIR')) {
3315
define('CMF_TEST_ROOT_DIR', realpath(__DIR__.'/..'));
3416
}

0 commit comments

Comments
 (0)