I can't help you much with that implementation, however, the principe of such architecture is to separate and abstract persistance layer. From a stupid point of view, Service Locator (ie Dependancy Injection) has nothing to do with the principe of a Service Layer. Both serve different purpose.
Service Locator (DiC) helps you to retrieve an Object (it can be a Service, a Configuration object, or anything you want) from anywhere in your application I'm not a fan of this static implementation of the Service Locator, where I'd rather use an action helper But well this exception is throwed because you're trying to get an inexistant 'TestService ServiceLocator usually works with a "Container" which sets up the different services Make sure your "TestService" is correctly configured in your Container (it can be a PHP class, an INI, an XML or whatever) Take a look at the other services and try to understand how they work.
I can't help you much with that implementation, however, the principe of such architecture is to separate and abstract persistance layer. From a "stupid" point of view, Service Locator (ie Dependancy Injection) has nothing to do with the principe of a Service Layer. Both serve different purpose.
Service Locator (DiC) helps you to retrieve an Object (it can be a Service, a Configuration object, or anything you want) from anywhere in your application. I'm not a fan of this static implementation of the Service Locator, where I'd rather use an action helper. But well this exception is throwed because you're trying to get an inexistant 'TestService'.
ServiceLocator usually works with a "Container" which sets up the different services. Make sure your "TestService" is correctly configured in your Container (it can be a PHP class, an INI, an XML or whatever). Take a look at the other services and try to understand how they work.
Thanks Boris for your great explanation! Really helped to understand few things.. And as for the exception you were also right, I had to use name specified in services. Ini "test" not the name of the class "TestService" – user987220 Nov 5 at 10:53.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.