WouterJEloquentBundle icon indicating copy to clipboard operation
WouterJEloquentBundle copied to clipboard

Allow service observers to bind to model in tag

Open wouterj opened this issue 7 years ago • 0 comments

E.g.

app.user_observer:
    class: AppBundle\Observer\UserObserver
    tags:
        - { name: wouterj_eloquent.observer, model: AppBundle\Model\User }

This requires some more work, as it needs to bind on each request instead of just once during container building. This might require adding a new initializers.

wouterj avatar Mar 06 '17 20:03 wouterj