I want have an store of variables visibles for all application (application space). I want it because I need access to $locale variable from all views for translate my multilanguage web.
I know in ZF1 there was a ZEND_REGISTRY class, but it has been removed.
How I can do the same feature in ZF2? Does it serve DI class (dependency Injector) for done this function?
I have listened also anything about create service factories for classes that have dependencies, and to use the ServiceManager then to manage all dependencies.
I need an example because I've never worked with DI, factories nor ServiceManager.