idea-php-symfony2-plugin
idea-php-symfony2-plugin copied to clipboard
Symfony: You probably want to inject the parameter "kernel.project_dir" inside Kernel class / implementation
This check should probably be ignored when inside a class that extends or implements the KernelInterface?
Came here for the same one 😉
This check should probably be ignored when inside a class that extends or implements the KernelInterface?
As the plugin parses services.yaml to know exactly which services exist a simpler fix should be to only show any "injection is possible" warning when dependency injection is possible at all.
fixed: as Kernel::class is injectable, its now hiding not itself, based on the interface.