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

Update service classes when renaming a class through PhpStorm refactorings

Open stof opened this issue 10 years ago • 4 comments

The service definitions are detected as usages of the class currently. It would be great if refactorings could handle service definitions too

stof avatar May 12 '15 13:05 stof

+1, that's one of the features I really miss

Ma27 avatar May 12 '15 20:05 Ma27

+1

MacDada avatar Aug 25 '15 12:08 MacDada

Would be great if u could implement that feature. In my daily work, I often rename classes/namespaces ;)

CheesEM avatar May 30 '16 09:05 CheesEM

Hi, is this issue still valid? I suppose it is as refactoring a class name doesn't work for me but on the other hand it could be some misconfiguration on my side. IMO not having this feature is a very bad DX when using Yaml for container configuration but I also wonder if this might be just my subjective opinion, as this issue is 10 years old so maybe other Symfony devs don't care 😄

Btw. Should this feature replace every occurence of a FQCN in Yaml (e.g. service id) or only the class key?

@stof The service definitions are detected as usages of the class currently.

They are? When I use "Find usage" on a class it doesn't find anything in yaml files, even with "Text occurences" checked.

now-mar avatar Aug 20 '25 07:08 now-mar