Hi,
Can a service be initialized at bootstrap automatically?
I've written a multilingual library which loads a custom router to take care of 
the locale which can be located at 
https://github.com/JPG-Consulting/LocaleManager. The problem here is I must 
inject some instances to the router class so it works fine. This is done throw 
the service fctory of the LocaleManager service... As you can see in the 
Module.php file I do this by providing a bootstrap method and getting my 
service  so it gets created.
Most of this "module" can be configured right away in the module.config.php of 
any of the modules not needing to register the module... But in order to do so 
i need a way to initialize my service automatically within the application and 
not the module itself. Is there a way to accomplish this task?
Thankyou in advance.                                      

Reply via email to