I come to you today because I'm facing a problem with my Symfony's project. I'd like to restrict a service to a specific host. The project includes several interfaces for different kind of users. The thing is I need to declare some services only for a specific host in order to not interfer with the other interfaces.
I've tried to add the host clause in the service definition but Symfony doesn't take it.. The temporary solution is to check the host inside the service but it's not clean..
Thanks to everyone who helps !
Ciao !