Zend Framework 2

Handling ZF2 FQ Dependency Setter Injections

In a previous article I showed how you could pass in a fully qualified parameter name into the Dependency Injection Container (DiC) if you needed to be specific about where you need to have something injected.  There is an alternate method here that is cleaner than what I did before.  Let’s start with a TestContinue Reading “Handling ZF2 FQ Dependency Setter Injections”

Zend Framework 2

ZF2 Dependency Injection – Multiple Object Instances

When you work with the ZF2 Dependency Injection Container (DiC) when you make multiple requests for an instance of an object you will get the same object back each time. For example, with this code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20Continue Reading “ZF2 Dependency Injection – Multiple Object Instances”

Zend Framework 2

ZF2 Dependency Injection: Managing Configuration – Part 2

In my previous post about Dependency Injection Container (DiC) configuration I made mention of some more complicated scenarios that you can use to configure your objects.  Not that you need help to make it  more complicated.  One of the things I have observed is that the more familiar I am with the DiC the moreContinue Reading “ZF2 Dependency Injection: Managing Configuration – Part 2”

Zend Framework 2

ZF2 Dependency Injection: Managing Configuration – Part 1

Configuration is a big reason to use a Dependency Injection Container (DiC).  I’ve been doing a lot of playing around with the ZF2 DiC and one of the things that I like about it is the ability to retrieve fully configured objects in  one line of code.  I’ve been going a bit overboard lately butContinue Reading “ZF2 Dependency Injection: Managing Configuration – Part 1”

Zend Framework 2

A little more advanced ZF2 EventManager usage

<note>I found out that this usage is going to be deprecated.  This feature will remain, but for the GA (and beta 4 most likely) this code may not work.  I will be updating this blog post when that happens</note> If you look at my previous post on the ZF2 EventManager class you might be temptedContinue Reading “A little more advanced ZF2 EventManager usage”

Zend Framework 2

My first stab at the Dependency Injection Container in Zend Framework 2

So, let me explain… no, there is too much.  Let me sum up. With beta 3 now being released I have started to spend some time getting used to the new MVC components and the architecture in general.  I turns out that was too much.  When I learn something new I like to start withContinue Reading “My first stab at the Dependency Injection Container in Zend Framework 2”