News Feed
Sections




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

Jurian Sluiman:
Using Zend Framework service managers in your application
October 03, 2012 @ 08:52:39

Jurian Sluiman has a new post to his site showing how to use the service managers in your Zend Framework v2 applications.

Zend Framework 2 uses a ServiceManager component (in short, SM) to easily apply inversion of control. I notice there are good resources about the background of service managers (I recommend this blog post from Evan or this post from Reese Wilson) but many people still have problems to tune the SM to their needs. In this post I will try to explain the reason why the framework uses multiple service managers and how you can use these.

He talks about the different service managers that are available in the framework, why they're used, how they relate to the service locator and how you can define/fetch your own services in them. He includes some basic configuration code and compares the behavior of the root service manager to the others (application services, controllers, view helpers, etc).

0 comments voice your opinion now!
zendframework2 service manager tutorial introduction


blog comments powered by Disqus

Similar Posts

Dhiraj Patra's Blog: Caching PHP Programs with PEAR

SitePoint PHP Blog: How to Expose PHP's Private Parts

Laravel News: 75 Laravel Tutorials, Packages, and Resources from 2014

GoodPHPTutorials.com: SQL Injections in PHP with MySQL

PHPBuilder.com: Developing a Ajax-driven Shopping Cart with PHP and Prototype


Community Events

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


extension performance opinion introduction conference api xdebug symfony2 voicesoftheelephpant framework podcast laravel version community interview php7 release library series example

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