Faster, better, and more efficient type hinting for PHP Storm with service locators
问题 I have been looking for a way to do this for months. I am one of those developers that loves autocompletion. For every Service Locator call in zend framework 2 I type hint with the following: Without global hinting file /** @var \Module\Service\SuperService $superService */ $superService => $this->getServiceLocator()>get('\Module\Service\SuperService'); $superService->coolFunction(); This works, but the code can get messy when you start getting 2-4 Services in a single Controller. I am trying