Skip to content

Commit 61188a7

Browse files
tadckasaimaz
authored andcommitted
Fix annotations cache reader. (#737)
1 parent b996c48 commit 61188a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Command/DocumentGenerateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ private function getPropertyTypes()
584584

585585
return $this
586586
->getContainer()
587-
->get('annotations.cached_reader')
587+
->get('es.annotations.cached_reader')
588588
->getPropertyAnnotation($reflection->getProperty('type'), 'Doctrine\Common\Annotations\Annotation\Enum')
589589
->value;
590590
}

Resources/config/services.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
class: Doctrine\Common\Cache\FilesystemCache
1717
arguments: ["%kernel.cache_dir%/ongr/elasticsearch", ".ongr.data"]
1818

19-
annotations.cached_reader:
19+
es.annotations.cached_reader:
2020
class: Doctrine\Common\Annotations\CachedReader
2121
arguments: ["@annotations.reader", "@es.cache_engine", "%kernel.debug%"]
2222

@@ -27,7 +27,7 @@ services:
2727

2828
es.document_parser:
2929
class: ONGR\ElasticsearchBundle\Mapping\DocumentParser
30-
arguments: ["@annotations.cached_reader", "@es.document_finder"]
30+
arguments: ["@es.annotations.cached_reader", "@es.document_finder"]
3131
public: false
3232

3333
es.metadata_collector:

0 commit comments

Comments
 (0)