Skip to content

Commit

Permalink
Merge pull request #324 from boekkooi/issue-283
Browse files Browse the repository at this point in the history
Replace doctrine.orm.metadata.annotation_reader with annotation_reader.
  • Loading branch information
stof committed Aug 26, 2014
2 parents a57fe0f + bfbd6ca commit f4672bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/DoctrineOrmMappingsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static function createPhpMappingDriver(array $namespaces, array $managerP
*/
public static function createAnnotationMappingDriver(array $namespaces, array $directories, array $managerParameters = array(), $enabledParameter = false, array $aliasMap = array())
{
$reader = new Reference('doctrine.orm.metadata.annotation_reader');
$reader = new Reference('annotation_reader');
$driver = new Definition('Doctrine\ORM\Mapping\Driver\AnnotationDriver', array($reader, $directories));

return new DoctrineOrmMappingsPass($driver, $namespaces, $managerParameters, $enabledParameter, $aliasMap);
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</parameters>

<services>
<!--- Annotation Metadata Reader Service -->
<!--- Deprecated Annotation Metadata Reader Service alias, use annotation_reader service -->
<service id="doctrine.orm.metadata.annotation_reader" alias="annotation_reader" public="false" />

<service id="doctrine.orm.proxy_cache_warmer" class="%doctrine.orm.proxy_cache_warmer.class%" public="false">
Expand Down

0 comments on commit f4672bf

Please sign in to comment.