[Application] Move autoload and paths setup to ApplicationFileProcessor #6915
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@marcelthole @boesing while working on alternative PR for EnumCaseToPascalCaseRector:
I realized that when autoload provided, on parallel, the registered autoload input setup gone on parallel. This PR ensure it always included, as on parallel, that means it separate process.
-agone on parallel because of separate process.rector-src/src/Console/Command/ProcessCommand.php
Line 120 in b29132b
only check registered paths via
withPaths()or path provided by command, not includeautoloadPaths()because of no paths defined, but defined withPaths() is empty, it never empty:and below added too early:
⇓
rector-src/src/Console/Command/ProcessCommand.php
Line 99 in b29132b
it make never empty.
Last but not least:
I am thinking of discussing the usage of
autoloadPaths()more properly, since it currently mix between "autoload" or "include files provided to be analyzed".rector-src/src/Autoloading/AdditionalAutoloader.php
Lines 40 to 44 in b29132b
but that's different PR to discuss to keep match with current documentation
https://getrector.com/documentation/static-reflection-and-autoload#content-register