You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get "Missing service" warnings in PHPStorm when using service names containing capital letters, even though the case correspond to the one used in the services.yml file. The problem looks similar to a previously reported issue concerning YML parameters.
In my Controller, the "correctly cased" service is marked as missing by PHPStorm:
// src/Acme/ExtranetBundle/Controller/MyController.php$listFriends = $this->get('acme_extranet.myFriends'); // missing service warning
If I change the F for an f, the warning disappears.
Thanks, by the way, for a great plugin!
Using:
PHPStorm 8.0.3
Symfony2 Plugin 0.11.93
The text was updated successfully, but these errors were encountered:
marcverney
changed the title
"Missing service" warning on services names with capital letters
"Missing service" warning on service names with capital letters
Jun 29, 2015
the plugin should be aware that service ids are lowercased and so that the service is not missing.
However, I also suggest adding a warning saying that it is better to use the lowercase id to access the service: it is faster (especially in recent Symfony version as additional optimizations have been done for the normal code path so that using the real id does not have any overhead associated to the case-insensitivity support)
Hi,
I get "Missing service" warnings in PHPStorm when using service names containing capital letters, even though the case correspond to the one used in the services.yml file. The problem looks similar to a previously reported issue concerning YML parameters.
Example:
The service name gets lowercased in the xml container file (see @stof's comment in the above mentioned related issue)
In my Controller, the "correctly cased" service is marked as missing by PHPStorm:
If I change the
F
for anf
, the warning disappears.Thanks, by the way, for a great plugin!
Using:
PHPStorm 8.0.3
Symfony2 Plugin 0.11.93
The text was updated successfully, but these errors were encountered: