-
-
Notifications
You must be signed in to change notification settings - Fork 642
Feature/v3 configuration #1932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/v3 configuration #1932
Conversation
|
This pr is blocked by some internal discussions and tests of a new plugin structure. |
|
If there's a |
| */ | ||
| public function execute($command, callable $next) | ||
| { | ||
| var_dump($command->getFile()->path()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var_dump() intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saw that one to. Fixing it currently 😃
ashnazg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflict showing for composer.lock.
Good bit of commented-out code still in here.
Two questions of my own (.env and var_dump).
Note that I have no real experience in DICs, so I can't review the logic here. If it runs correctly in your tests, that's good enough for me.
I could probably follow up later to put in additional strict typing, since this already has so much change in it.
In this change I have replaced Cilex with Symfony 4. In this change I have introduced a compatibility layer so that third-party's can integrate with minimal effort. An important thing to note is that this layer should be temporary and there is not a 100% guarantue. For one; order now matters and this may cause errors for some third-parties.
In preparation to refactor the commands I moved them all to a separate namespace centralized in the application.
By moving the business logic of parser and transform commands we are able to reuse it without any strange hacks in multiple commands. Configuration is now completely provided as an array from the configuration factory.
Pass the parser instance to cache middleware so it can check if the force flag was enabled. Because this triggers a circular dependency I introduced parser as a lazy service.
This pr is a follow up on pr #1940.
It replaces the configuration of phpdocumentor with the new v3 config setup. A lot of refactoring was needed to accomplish this. I moved the commands to stages of a pipeline, the commands are refactored to pipeline only.