How to Solve this error- Deprecated: You are retrieving the service locator from within the class

54 Views Asked by At

Deprecated: You are retrieving the service locator from within the class Application\Controller\myController. Please be aware that ServiceLocatorAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceLocatorAwareInitializer. You will need to update your class to accept all dependencies at creation, either via constructor arguments or setters, and use a factory to perform the injections.

0

There are 0 best solutions below