Answer the question
In order to leave comments, you need to log in
Show examples where the Service Locator pattern is used?
I don’t understand where you can use the Service Locator, are there any examples in which cases they used it?
Answer the question
In order to leave comments, you need to log in
Many microframeworks use this pattern (in one form or another) to configure dependencies. For example, pimple.sensiolabs.org/. Pimple calls itself a Dependency Injection Container, but it's essentially a Service Locator. In any case, based on examples of use.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question