Heya!

Mind sharing the module code or generally making a gist with a simple
example? It's hard to follow what is going on :)

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 4 July 2013 19:51, Norbert Máté <[email protected]> wrote:

> Hi everyone,
>   I have an old application that was written using zf 1.9. I have to
> develop new features and I thought it's time to move on and develop the new
> features as zf2 modules.
>   The problem is that it uses registry for storing the set up dependency
> injection instance. I wan't to reuse the data access layer of the old app
> and to be able to do this I setup the DI and save it in the old Registry:
> \Zend_Registry::set('di',$di);
>
> I do this in the Module.php.
> The problem is that if I want to get the DI instance in the other parts of
> the project like in a controller with \Zend_Registry::get('di'); what I get
> back does not remembers the DI settings. It's like it is overwritten but I
> have put a breakpoint in the Zend_Registry::set function and it is called a
> single time.
>
> Probably I will change the registry to Service manager but I can't find out
> the Registry why does not work.
>
> Do you have any idea?
>
> Thanks,
> Norbert.
>

Reply via email to