Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow service observers to bind to model in tag #52

Open
wouterj opened this issue Mar 6, 2017 · 0 comments
Open

Allow service observers to bind to model in tag #52

wouterj opened this issue Mar 6, 2017 · 0 comments
Milestone

Comments

@wouterj
Copy link
Owner

wouterj commented Mar 6, 2017

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 wouterj modified the milestone: 1.0 Mar 6, 2017
@wouterj wouterj modified the milestones: 1.0, 1.1 Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant