I'm using a Service layer, then, I've alot of Service like:
- UserService
- ArticleService
- CommentService
- AuthorizationService
Sometimes I need to use a Service from another Service.
Currently, I'm using sfServiceContainer for dependency injection, and I inject my Doctrine 2 Entity Manager in some of my service, however, I'm thinking to switch and inject the Container Instance to be able to fetch any Service and the EntityManager.
But I'm stuck and I'm not sure it's a good idea.