-
Notifications
You must be signed in to change notification settings - Fork 79
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
Overriding manager #112
Comments
Hi bennet, i created a PostManager wich extends the wordpressbundle BaseManager.
It works for me |
Hi @benbet, you can do a new class that extends the base class
http://symfony.com/doc/current/components/dependency_injection/types.html#setter-injection |
Bonjour t-n-y, Merci pour ta réponse, j'ai appliqué ce que tu m'as recommandé mais j'ai toujours une erreur 500 ... Pourrais-tu me montrer le contenu de ton PostManager et le contenu de ton fichier config ? Grand merci pour ton aide (en français c'est plus facile pour moi ;-) ) Ben |
Hello,
I'am new with Sf...
Could you explain me how can I override the PostManager to use a custom manager like MyPostManager ?
Which argument should I put in services.yml file ?
MyPostManager:
class: %MyPostManager.class%
arguments: [? ; ? ; ?]
Thank you
Ben
The text was updated successfully, but these errors were encountered: