Hey Rector Team! Can Rector generate custom rules from classmap extraction using for example Rector FileProcessor? #7426
Answered
by
TomasVotruba
alexandreelise
asked this question in
Q&A
|
Hi, I am doing manually the task of creating a custom rector rule for each class alias of my favourite framework ('cough' Joomla) so it can do a rename for static calls e.g - JRoute::
+ \Joomla\Router\Route::
But I pretty think there is an automated way of generating all those rules using Rector to generate a custom Rector rule. Kinda inception. I am aware of rector generate but rather want to parse a class alias php file than generate each custom rule with the corresponding code in it. I know it's doable but is it the correct approach to do it. Can you shed a light on this one please @TomasVotruba |
Answered by
TomasVotruba
Aug 26, 2022
Replies: 1 comment 4 replies
|
Hi, what is your goal exactly? Rename class? |
4 replies
Answer selected by
alexandreelise
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
what is your goal exactly? Rename class?