idea-php-symfony2-plugin icon indicating copy to clipboard operation
idea-php-symfony2-plugin copied to clipboard

Symfony: You probably want to inject the parameter "kernel.project_dir" inside Kernel class / implementation

Open alcohol opened this issue 2 years ago • 1 comments

This check should probably be ignored when inside a class that extends or implements the KernelInterface?

image

alcohol avatar Sep 04 '23 07:09 alcohol

Came here for the same one 😉

image

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.

curry684 avatar Feb 07 '24 20:02 curry684

fixed: as Kernel::class is injectable, its now hiding not itself, based on the interface.

Haehnchen avatar Apr 01 '24 13:04 Haehnchen