rectorphp / getrector-com

Rector Website
https://getrector.com
MIT License
26 stars 37 forks source link

cannot find ExtractAttributeRouteNameConstantsRector class #2168

Closed tacman closed 7 months ago

tacman commented 7 months ago

I'm following the instructions at https://getrector.com/blog/switch-symfony-string-route-names-to-constants

but I can't find the rule -- did the class name change?

use Rector\SymfonyCodeQuality\Rector\Attribute\ExtractAttributeRouteNameConstantsRector;
TomasVotruba commented 7 months ago

Hi, thanks for reporting. We've removed this rule as it required access to Symfony container and disabled static analysis we run on: https://github.com/rectorphp/rector-symfony/commit/f582138536394e74a66c5e77050cf891d8acaa53

There won't be any replacement, but you can fork rule locally and make it run for your specific project. I'll update the post as well :+1: