News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Evan Coury:
Introduction to the Zend Framework 2 ServiceManager
July 20, 2012 @ 08:55:09

Evan Coury has posted a quick guide to one of the major features of the Zend Framework 2 project so far - the ServiceManager. He introduces the component and talks about some of its key features.

So, what is the ServiceManager? Basically it's a registry, or container (the proper term is service locator) to hold various objects needed by your application, allowing you to easily practice Inversion of Control. The service manager holds just the information needed to lazily instantiate these objects as they're needed. So if you were thinking 'services' such as those composing a service layer, you might be better off thinking of the service manager more as an "object manager" or "instance manager".

He mentons some of the functionality that comes with the component including invokables, factories, aliases, initializers, configuration classes and abstract factories. He also links to the ServiceManager quickstart over in the Zend Framework 2 documentation for more information.

0 comments voice your opinion now!
zendframework2 servicemanager component introduction


blog comments powered by Disqus

Similar Posts

John Mertic's Blog: PHP Windows Installer 1 year old (almost)

The Bakery: RESTful Web Services With CakePHP

Gary Hokin: An Introduction to Zend Framework 2 for the Zend Framework 1 Developer - Part 1

Debuggable Blog: Unit Testing in CakePHP Part 1 - Introduction to Unit Testing

NetTus.com: You Requested It, We Made It: Free PHP Testing Course


Community Events

Don't see your event here?
Let us know!


framework list introduction library api series version extension podcast voicesoftheelephpant opinion laravel5 interview release community language example security php7 laravel

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework