Hi everyone, I would like to to make a some kind of a check before the controller action is executed.
Let me briefly explain: I have subdomains for every user like: user1.example.com user2.example.com When someone requests a page on any subdomain, I want to perform a check to see if this kind of domain exists in the database and get a domain_owner object (doctrine entity). If there is no domain like this then redirect to 404 page. The thing is I need to perform this check in several bundles. So I was thinking to create a custom base controller and put my checking code into constructor. And then extend all other controllers from this controller. But the Entity Manager is not available in the constructor. So I don't know how should I do it properly. Some kind of init() or boot() function could help, but it looks like anything like that is supported by Symfony. Any suggestions? Regards, Nikita -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
