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/configuration factory #1597
Feature/configuration factory #1597
Conversation
…tor2 into feature/configuration-factory
Hi @rgeraads, You're off to a good start! During the code review I have found the following points of improvements:
In addition to the above I will add a few comments inline with the source. |
return [ | ||
'folder' => (string) $version->folder, | ||
'api' => [ | ||
'format' => 'php', |
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.
this should also come from the xml
{ | ||
$this->validate($phpDocumentor); | ||
|
||
$extensions = []; |
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.
the default for extensions is php, php3 and phtml; by omitting content here the parser won't pick up on any file
My apologies for the number of points; I noticed some things that would quite possibly lead to issues later on. |
…d in the order of the array keys (and we want to be able to compare the arrays)
every part of the xml is built multiple times if the xsd allows it
The ConfigurationFactory that converts phpdocumento2 / phpdocumento3 xml to an array