phpstorm-phpdi
phpstorm-phpdi copied to clipboard
PHP-DI plugin for PhpStorm
PHP-DI plugin for PhpStorm
Plugin url : https://plugins.jetbrains.com/plugin/7694
This is very simple plugin which only implements type provider for services returned from PHP-DI container.
Strictly speaking current implementation is not dependent on PHP-DI in any way. It just supports certain way of receiving services from container which is widely used in PHP-DI:
<?php
$postRepository = $container->get(PostRepository::class);
So the only thing this plugin does is:
- It looks for all
get(ormake, sincev1.2.0) method calls. - It filters out all except those where first argument contains
::classsubstring. - It extracts class FQN from the first argument and provides it as a return type for that specific method call.
Result:

Contributors:
License: MIT