T
T
Talgat Baltasov2015-08-31 17:23:53
Design patterns
Talgat Baltasov, 2015-08-31 17:23:53

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

1 answer(s)
K
kanstantsin, 2015-09-11
@kanstantsin

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 question

Ask a Question

731 491 924 answers to any question