-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[Slim] Refactoring #402
[Slim] Refactoring #402
Conversation
composer.lcok should be commited to SVN. Official recommendation https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
037fed4
to
0296c4c
Compare
@ackintosh Now I'm satisfied with the result. Please, review and merge when possible. |
...openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlimServerCodegen.java
Outdated
Show resolved
Hide resolved
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.
Thanks for the refactoring! ✨
Please change the permission of the scripts:
644 -> 755
- bin/php-slim-server-petstore.sh
- bin/security/php-slim-server-petstore.sh
0296c4c
to
f45bb64
Compare
f45bb64
to
7b630f1
Compare
@ackintosh @wing328 Both recommendations has been applied |
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.
Looks good to me. 👍
The shippable failure has been fixed in the master. |
* [Slim] Cleanup samples. composer.lock excluded from .gitignore composer.lcok should be commited to SVN. Official recommendation https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control * [Slim] Refactor. Extend AbstractPhpCodegen class * [Slim] Adjust the names (script, sample folder, generator) to lang option
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
and./bin/security/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\
.master
,3.1.x
,4.0.x
. Default:master
.Description of the PR
I found beautiful
AbstractPhpCodegen
class. In this pull requestPhpSlimServerCodegen
gets new config options and extendsAbstractPhpCodegen
. Now Slim codegen much smaller and cleanier.Also I noticed old LICENSE file in Slim samples. Current codegen doesn't create LICENSE file for Slim, so I've deleted it.
cc @jebentier @dkarlovi @mandrean @jfastnacht @ackintosh