kayue / KayueWordpressBundle

A Symfony 2 bundle for providing WordPress repositories and authenticating users (login).
101 stars 43 forks source link

Ability to inject FileCacheReader #61

Closed umpirsky closed 9 years ago

umpirsky commented 9 years ago

Reading annotations using Doctrine\Common\Annotations\AnnotationReader is not the most optimal way as it does not use annotation cache.

After this fix, service can be override to use Doctrine\Common\Annotations\FileCacheReader:

kayue_wordpress.table_prefix.subscriber:
    class: %kayue_wordpress.table_prefix.subscriber.class%
    arguments:
        - %kayue_wordpress.table_prefix%
        - @annotation_reader
    tags:
        - { name: doctrine.event_subscriber }
kayue commented 9 years ago

Thanks @umpirsky