Skip to content

Commit

Permalink
Update Resources/doc/index.rst
Browse files Browse the repository at this point in the history
Use improved way of registering annotations library suggested by
@jmikola in doctrine#158.
  • Loading branch information
meonkeys committed Sep 21, 2012
1 parent 1f4270a commit 8a265c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Resources/doc/index.rst
Expand Up @@ -67,9 +67,8 @@ Next, register the annotations library by adding the following to the autoloader
(below the existing ``AnnotationRegistry::registerLoader`` line)::

// app/autoload.php
AnnotationRegistry::registerFile(
__DIR__.'/../vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/DoctrineAnnotations.php'
);
use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
AnnotationDriver::registerAnnotationClasses();

All that is left to do is to update your ``AppKernel.php`` file, and
register the new bundle::
Expand Down

0 comments on commit 8a265c8

Please sign in to comment.