mirror of
https://github.com/doctrine/DoctrineCouchDBBundle.git
synced 2026-03-24 00:42:08 +01:00
use registerLoader in README
This commit is contained in:
@@ -14,10 +14,7 @@ STABILITY: Alpha
|
||||
To use the annotations, register them in your app/autoload.php file:
|
||||
|
||||
use Doctrine\Common\Annotations\AnnotationRegistry;
|
||||
AnnotationRegistry::registerAutoloadNamespace(
|
||||
'Doctrine\ODM\CouchDB\Mapping',
|
||||
__DIR__ . '/../vendor/doctrine/couchdb-odm/lib/Doctrine/ODM/CouchDB/Mapping/Annotations'
|
||||
);
|
||||
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user