I have an abstract controller in my app (ZF3) which extends all my module controllers.
I'm calling here my base translator and apply the translator also per module but as getServiceLocator() is removed from ZF3 I'm wonder what I can do to create a $this->translator in that extended controller.
This what I used in ZF2:
$this->translator = $this->getServiceLocator()->get('translator');
I have found these docs but this is seems another purpose to me.
https://zendframework.github.io/zend-mvc/migration/to-v2-7/#servicelocatoraware-initializers