Skip to content

Conversation

@jaapio
Copy link
Member

@jaapio jaapio commented Jan 1, 2018

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.

@jaapio
Copy link
Member Author

jaapio commented Jan 9, 2018

This pr is blocked by some internal discussions and tests of a new plugin structure.

@jaapio jaapio requested review from ashnazg and mvriel April 26, 2018 18:21
@ashnazg
Copy link
Member

ashnazg commented Apr 26, 2018

If there's a .env.dist, does that imply that the .env file should not be committed in?

*/
public function execute($command, callable $next)
{
var_dump($command->getFile()->path());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var_dump() intentional?

Copy link
Member Author

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 😃

Copy link
Member

@ashnazg ashnazg left a 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.

mvriel and others added 24 commits April 27, 2018 12:28
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.
@jaapio jaapio merged commit dbbcf59 into phpDocumentor:develop Apr 29, 2018
@jaapio jaapio changed the title WIP: Feature/v3 configuration Feature/v3 configuration Apr 29, 2018
@jaapio jaapio deleted the feature/v3-configuration branch April 29, 2018 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants