Skip to content

Instantly share code, notes, and snippets.

@igormx
Created April 30, 2015 22:49
Show Gist options
  • Save igormx/0ccf06d15ef863ad81a1 to your computer and use it in GitHub Desktop.
Save igormx/0ccf06d15ef863ad81a1 to your computer and use it in GitHub Desktop.
Plugins Managers, Service Manager and Service Locator: solving the confusion.
Goal: Clarify the confusion between the Service Locator pattern and the ZF2's Service Manager implementations including the plugin managers.
1.- I will talk about the Service Locator pattern, what it is, what kind of problems it solves,(perhaps talking a bit about what a service is).
2.- Later, i will explain the ZF2's Service Manager implementation, how to configure it, how to use it, how to avoid some common mistakes
3.-Finally, i will talk about the plugin managers,how they are some kind of clones of the Service Manager but its purpose is just to serve one kind of service,and i will emphasize on the benefits of using them and ofcourse that they have some minor traps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment