Is there a way run Rector within another application? #7581
-
I'd love to be able to use Rector to perform more upgrades in a staged approach. It would be awesome to build my own application to step through running different configurations quickly instead of having to manually tweak the config, run rector and see the results, then change the results again. Is there a good entry point to running the rector process with an in-memory config programmatically? |
Beta Was this translation helpful? Give feedback.
Answered by
TomasVotruba
Nov 7, 2022
Replies: 1 comment
-
There are 2 way to do this, based on your knowledge of hacking CLI apps written in Symfony.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
peterfox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are 2 way to do this, based on your knowledge of hacking CLI apps written in Symfony.
ProcessCommand
- this requirest keeping your own "fork" up-to-date and will break eventuallyjson
output formatter - easy and quick solution; I use this with the other PHP toolings to get metadata withsymfony/process
out of those