Hi Colin well spotted and thanks for getting in touch!

I had fixed that typo in a prior commit so best make sure you are using the latest version of the examples.

The commit I'm talking about is this one: https://github.com/zfsyd/zf2-component-examples/commit/6445f8126c33e0c5547fa48f533cd63cc75b72b4

Out of interest, did you find the examples useful?  I thought about doing a short video to walk through the examples.  Do you reckon that would be useful?

Any feedback would be awesome :-)

Cheers,
Dave

On 29/06/2013, at 4:09, Colin Kelly <notifications@github.com> wrote:

> In module/ServiceManagerExamples/src/ServiceManagerExamples/Controller/TutorialController.php:
> 
> > +            'reward'   => $reward,
> > +        );
> > +    }
> > +    
> > +    public function demoAction()
> > +    {
> > +        // Due to the :controller and :action parameters set in the default route
> > +        // (see module.config.php)
> > +        // you can request this action by browsing to /tutorial/tutorial/demo
> > +        
> > +        // Demoing the ServiceManger 'factory' entry we set up 
> > +        $goodMagician = $this->getServiceLocator()->get('good_magician');
> > +        var_dump($goodMagician);
> > +        
> > +        $evilMagician = $this->getServiceLocator()->get('evil_magician');
> > +        var_dump($goodMagician);
> isnt it $evilMagician?
> 
> —
> Reply to this email directly or view it on GitHub.