Skip to content
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

[PHP-Lumen] Lumen 5.6 support #114

Closed
wants to merge 9,340 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
9340 commits
Select commit Hold shift + click to select a range
5d1c157
Update PHP samples with OAS2 before enabling CI test (#230)
wing328 Apr 26, 2018
b421ee9
Update Erlang server samples with Petstore OAS2 (#150)
wing328 Apr 26, 2018
f55f0ac
fix erlang client compilation error (#228)
wing328 Apr 26, 2018
a6c1459
Regenerate all jaxrs examples (#234)
jmini Apr 26, 2018
d76ff26
Rework url handling (#236)
jmini Apr 26, 2018
b36e145
Generate java-msf4j (#225)
jmini Apr 26, 2018
2c099e2
update erlang server with oas3, no diff (#238)
wing328 Apr 26, 2018
4b6f70a
Test erlang client, server petstore (#235)
wing328 Apr 26, 2018
d9e0282
update ts node with oas2 (#239)
wing328 Apr 26, 2018
0d68607
Update C# API client with Petstore OAS2 (#240)
wing328 Apr 26, 2018
3e030d5
Update TS Angular v4, v4.3 with Petstore OAS2 (#241)
wing328 Apr 26, 2018
cba7810
update C# property change client (oas2) (#242)
wing328 Apr 27, 2018
99bb386
Update TypeScript Fetch client with Petstore OAS2 (#244)
wing328 Apr 27, 2018
f740d79
Generate vertx OAS2 (#226)
jmini Apr 27, 2018
ed4fbc5
update ts angularjs petstore (oas2), fix model prefix (#245)
wing328 Apr 27, 2018
5092d1f
update c# netstandard petstore (oas2) (#247)
wing328 Apr 27, 2018
0a1c66d
Update TypeScript jQuery, Aurelia, Inversify with Petstore OAS2 (#248)
wing328 Apr 27, 2018
5630139
update ts angular2 petstore oas2 (#249)
wing328 Apr 27, 2018
cd407f4
Fix missing models (#250)
ackintosh Apr 28, 2018
046a039
Update TypeScript Petstore samples with OAS3 (#253)
wing328 Apr 28, 2018
2601add
Update PHP Symfony server petstore with OAS2, OAS3 (#255)
wing328 Apr 28, 2018
71a1474
Update PHP Silex server petstore with OAS2, OAS3 (#254)
wing328 Apr 28, 2018
28ffb13
Update PHP Slim server samples with OAS2, OAS3 (#258)
wing328 Apr 28, 2018
831b2a6
Update PHP ZE-PH server samples with OAS2, OAS3 (#259)
wing328 Apr 28, 2018
9b9ae72
restore go client from codgen2x
wing328 Apr 28, 2018
6ee05fa
fix parameter naming in go
wing328 Apr 28, 2018
7c470ba
various fix for go petstore
wing328 Apr 28, 2018
671d5eb
update go test files
wing328 Apr 28, 2018
b6780a7
add postProcessParamter for body, form parameter (#263)
wing328 Apr 29, 2018
b6601be
use vendor extension in operation to set the body parameter name (#264)
wing328 Apr 29, 2018
04dd65b
Update default value for Perl, Ruby, ROR generators (#265)
wing328 Apr 29, 2018
b6d8985
Generate apex (#224)
jmini Apr 29, 2018
107661b
fix apex npe, better example value (#266)
wing328 Apr 29, 2018
ae5bf1a
Fix data type shadowing
antihax Apr 29, 2018
13b1ac8
Merge pull request #261 from wing328/fix_go
wing328 Apr 30, 2018
be3600a
update go readme, update pom go dependencies (#274)
wing328 Apr 30, 2018
1bd84db
Update default value for PHP server generators (slim, silex) (#272)
wing328 Apr 30, 2018
717bcac
Update Lumen generator petstore with OAS2, OAS3 (#256)
wing328 Apr 30, 2018
067f20d
Fix missing default value (#257)
ackintosh Apr 30, 2018
81b382c
Fix default value (#260)
ackintosh Apr 30, 2018
b3868b2
remove incorrect max, min in allowableValues (#269)
wing328 Apr 30, 2018
5bc5408
minor fixes to haskell http client generator (#278)
wing328 May 1, 2018
a757d31
Fix go readme, remove resty install (#280)
wing328 May 1, 2018
f16db43
fix NPE with cpp qt5, add logic to avoid NPE with composed schema (#267)
wing328 May 1, 2018
9c2ff89
[haskell-http-client] remove duplicates in produces/consumes; fix pat…
jonschoning May 1, 2018
8cea3c6
rearrange how map, array, model are checked in body request (#277)
wing328 May 1, 2018
9f0a3b4
Update C# with Petstore OAS3 (#281)
wing328 May 1, 2018
3707db2
update file header (#282)
wing328 May 1, 2018
11b1852
Update C# default value (#283)
wing328 May 1, 2018
688ec36
update default user agent (#284)
wing328 May 1, 2018
133587a
Override server port for Jetty configuration (#246)
jmini May 2, 2018
182411f
Update Swift4 client with OAS2 (#270)
wing328 May 2, 2018
7f762d4
update c# 2.0 samples (#285)
wing328 May 2, 2018
21a185f
[spring, play-framework] Handle setters for package values (#288)
jmini May 2, 2018
260aa94
update elm petstore with oas2 (#291)
wing328 May 2, 2018
576d5d8
Victor Orlovsky has been added to 'Founding Members' (#294)
viclovsky May 2, 2018
73b4fbf
Add 'Erik Timmers' as Founding Member (#295)
eriktim May 2, 2018
78d456a
Add Elm script with Petstore OAS3 (#293)
wing328 May 2, 2018
b93f113
Add 'Emiliano Bonassi' as Founding Memmber (#298)
emilianobonassi May 3, 2018
7969095
Update CI files (#296)
wing328 May 3, 2018
1a3e26a
Fix Scalatra petstore sample (#300)
wing328 May 3, 2018
439318c
Update java play framework samples OAS2 (#286)
jmini May 3, 2018
9d9982f
remove duplicated entries in C# csproj (#302)
wing328 May 3, 2018
1da6b5e
Update wordings (#301)
wing328 May 3, 2018
42f2c36
add test for scala (akka, http client) (#306)
wing328 May 3, 2018
fa8605b
Update rust client with Petstore OAS2 (#148)
wing328 May 3, 2018
151593a
Renamings (#252)
jmini May 4, 2018
6f4ef24
Move docs to a separate folder
jmini May 4, 2018
62f2c05
Add Elm, Rust, Groovy to Travis CI (#308)
wing328 May 4, 2018
1002d07
Rename default packages in meta (#314)
jmini May 4, 2018
e1c8d70
Rename groupId for java-play-framework (#310)
jmini May 4, 2018
18f4e26
Fix missing examples (#305)
ackintosh May 4, 2018
d1171d3
Update Elixir Petstore with OAS2 (#316)
wing328 May 4, 2018
4ba3296
Fixes in GitHub templates files (#311)
jmini May 4, 2018
68cc2d8
Update README.md
michelealbano May 4, 2018
b0955b1
update elixir with oas3 petstore (#318)
wing328 May 4, 2018
2e282f1
Update the default value of Ruby client generator (#320)
wing328 May 4, 2018
9ab3122
Update nodejs samples which skipped overwriting
ackintosh May 4, 2018
95fc0fc
Tweak indent
ackintosh May 4, 2018
95760b3
Rename 'keywords' for package.json
ackintosh May 4, 2018
f72da7d
update default value for elixir (#319)
wing328 May 4, 2018
cb9552c
Merge pull request #321 from ackintosh/update-nodejs-server
ackintosh May 5, 2018
73fae79
Regenerate html.md OAS2 (#251)
jmini May 5, 2018
52e2012
Update Dart petstore with OAS3, fix mustache format (#227)
wing328 May 5, 2018
01f1006
Merge 'master' branch of 'swagger-codegen' into 'openapi-generator' (…
jmini May 5, 2018
6068657
Add reactive option for Spring Boot (webflux)
cbornet Apr 21, 2018
0df2e6c
Add spring cloud sample tests back
cbornet May 4, 2018
30e1670
Merge pull request #262 from cbornet/reactive
cbornet May 5, 2018
2ca21e4
Fix array of form parameters (#324)
wing328 May 5, 2018
51ee2c6
Update Dart default value, re-enable Objc Tests (#328)
wing328 May 5, 2018
44a0fc1
Fix package declaration for play-framework (#332)
jmini May 6, 2018
3b4d932
Add more tests (c#, swift4) (#330)
wing328 May 6, 2018
a58590e
add ts tests (#337)
wing328 May 6, 2018
46bc4c4
Rename default packages for 'java-play-framework' (#335)
jmini May 6, 2018
f35dd6e
Rename default packages for 'jaxrs-spec' (#333)
jmini May 6, 2018
9999380
Rename default packages for 'java-undertow-server' (#336)
jmini May 6, 2018
e576dd8
Update validate command (#338)
ackintosh May 6, 2018
41a21a6
Fix form datatype (array of string) (#339)
wing328 May 6, 2018
d066742
Revise how to obtain the example value (#326)
ackintosh May 6, 2018
e0544c5
Fix NPE with Haskell client generator with OAS3 spec (#334)
wing328 May 6, 2018
4e21122
Fixes for php-ze-ph generator (#340)
Articus May 7, 2018
48dffb5
Revert "Revise how to obtain the example value (#326)" (#353)
wing328 May 7, 2018
06d4dca
Comment 'haskell-http-client' in shippable CI (#352)
jmini May 7, 2018
1fd139e
Rename default packages for java (#341)
jmini May 7, 2018
e21a5ca
Rename default packages for android (#349)
jmini May 7, 2018
dba8f83
Rename default package for html, html2, dynamic-html (#350)
jmini May 7, 2018
83f930c
Clean up the spec (#348)
wing328 May 7, 2018
3004f5f
Generate 'cwiki' (#351)
jmini May 7, 2018
6e58098
fix map type and collection format for form parameter (array) (#356)
wing328 May 7, 2018
69a43fe
update eiffel with petstore oas2 (#268)
wing328 May 7, 2018
9a3c3d3
Remove old metadata files (#357)
jmini May 7, 2018
2a7b6af
Rename default packages for php client (#315)
ackintosh May 7, 2018
0ad9703
Add more tests (Swfit3) (#359)
wing328 May 7, 2018
e77e4cc
Update python default value (#360)
wing328 May 7, 2018
e4be197
Update Python flask default value (#361)
wing328 May 8, 2018
f76065a
Update Go generators' default value (#362)
wing328 May 8, 2018
e3f815b
add test for body parameter example value (#363)
wing328 May 8, 2018
d032ebe
update getSchemaType variable, remove unused import (#365)
wing328 May 8, 2018
ec281d1
Update Flash default value (#366)
wing328 May 8, 2018
499c057
Regenerate samples (#367)
jmini May 8, 2018
aaa15c0
Regenerate 'samples/client/petstore-security-test/php/' (#368)
jmini May 8, 2018
7ee50bf
Generate kotlin 'client-string' sample (#369)
jmini May 8, 2018
34cf280
update eiffel codegen default (#371)
wing328 May 8, 2018
07f87bf
[DefaultCodegen] Fill CodegenOperation::produces with unique media ty…
Articus May 8, 2018
532c39d
Update default value, fix example value (#370)
wing328 May 8, 2018
9e4f881
Fix dataTypeWithEnum for array of form parameters (#354)
wing328 May 8, 2018
9a4ca18
Update default value for C++ related generator (#373)
wing328 May 8, 2018
3c506f2
Updated founder name (#383)
stkrwork May 9, 2018
eb92792
fix string comparison (#376)
wing328 May 9, 2018
5d05f91
update clojure default value (#377)
wing328 May 9, 2018
d525549
update lua default value (#379)
wing328 May 9, 2018
a4abfbf
update powershell default value (#380)
wing328 May 9, 2018
faf6fa3
[haskell-http-client] update samples (OAS3) (#381)
jonschoning May 9, 2018
5e60268
update erlang client, server default value (#378)
wing328 May 9, 2018
71a1524
Change default package name value for kotlin client (#382)
jmini May 9, 2018
475d6c1
Update php related samples (#375)
ackintosh May 9, 2018
f792956
Regenerate java clients (#385)
jmini May 9, 2018
563ee83
Rename C# default package name for html2 (#389)
jmini May 9, 2018
36ad2f2
Update Scala gatling's default value (#390)
wing328 May 9, 2018
9885156
Update default value for PowerShell, HTML2 generator (#388)
wing328 May 9, 2018
3b541a6
Change default package name value for kotlin server (#387)
jmini May 9, 2018
69dba87
update scalaz default value (#395)
wing328 May 9, 2018
9cc9f4a
Fixes in security examples (#396)
jmini May 9, 2018
bd8d24a
Fixes in new.sh (#398)
jmini May 9, 2018
442a298
update scala default value (#402)
wing328 May 9, 2018
088da3c
Docs: several small fixes (#399)
jmini May 9, 2018
52145de
wording change for haskell http client (#404)
wing328 May 9, 2018
d91a171
update ts node dependencies (#405)
wing328 May 9, 2018
e8a926b
Update akka scala default value (#401)
wing328 May 10, 2018
7853771
Update Scalatra's default value (#403)
wing328 May 10, 2018
5448e09
change default value for rust client (#406)
wing328 May 10, 2018
602a8ed
enhance ts import (#409)
wing328 May 10, 2018
707a3a7
Small fixes in samples (#410)
jmini May 10, 2018
5dc0ed8
Reaname R default package name (#411)
ackintosh May 10, 2018
4e96207
Add Migration from swagger-codegen guide (#408)
jmini May 10, 2018
f721b2a
replace body parameter naming extension (#412)
wing328 May 10, 2018
1cac236
update finch generator's default value (#394)
wing328 May 11, 2018
da91b13
Implement hideGenerationTimestamp for kotlin-server ktor (#416)
jmini May 11, 2018
f37760c
Rename the description of projectName option (#414)
ackintosh May 11, 2018
0af9ee8
update R default value, clean up old R files, add window batch for (#…
wing328 May 11, 2018
a1fce07
Changes for Docker (#400)
jmini May 11, 2018
b720d00
Add Question & Answer section (#413)
wing328 May 11, 2018
0ce8f77
add step to restore Org.OpenAPITools.Test.csproj (#420)
wing328 May 11, 2018
a9bfce6
Update PHP client default value (#417)
wing328 May 11, 2018
8b2152f
Various updates (#419)
wing328 May 11, 2018
98a7fd0
Fixes in README.md (#418)
jmini May 11, 2018
abf2e6e
remove unused js files (#421)
wing328 May 11, 2018
4902eed
Merge 'master' branch of 'swagger-codegen' into 'master' (#422)
jmini May 11, 2018
331c0aa
remove php old files, fix php folder in pom (#423)
wing328 May 11, 2018
8e8070e
fix ruby test case, update gemfile (#425)
wing328 May 11, 2018
38c5dc5
fix pom (#427)
wing328 May 11, 2018
658c9a7
Update Swift default value (#407)
wing328 May 11, 2018
9fb513e
Update python test (#426)
wing328 May 12, 2018
aba728f
update documentation (#428)
wing328 May 12, 2018
60bd53e
Centering badges
ackintosh May 12, 2018
dbe0fd5
centering, sort
ackintosh May 12, 2018
f73ad4a
table
ackintosh May 12, 2018
ffca3ed
Numbering
ackintosh May 12, 2018
7d5ddb2
Align heading level
ackintosh May 12, 2018
05b5cf1
Fix links
ackintosh May 12, 2018
2a91a62
Add link
ackintosh May 12, 2018
b9cb955
Merge pull request #2 from ackintosh/readme
wing328 May 12, 2018
c893b20
Various fixes (#1)
wing328 May 12, 2018
3958074
update header for java files
wing328 May 12, 2018
01b9b8c
Merge pull request #6 from OpenAPITools/update_file_header
jimschubert May 12, 2018
6c89b36
Fix JS test using baseName in default value (#5)
wing328 May 13, 2018
304be3d
[finch] Allow finch server to compile for CI checks (#7)
jimschubert May 13, 2018
c5952ad
Minor update to readme (#4)
wing328 May 13, 2018
0769c72
Fix NullPointerException in getUnusedSchemas(OpenAPI) (#10)
jmini May 13, 2018
39ff8b0
Fix NullPointerException in getSchemaType(Schema) (#14)
jmini May 13, 2018
7ee6758
add unit tests to cover #5 (#18)
wing328 May 13, 2018
98f6556
Code clean-up: remove DefaultCodegen#getSimpleRef(String) (#19)
jmini May 13, 2018
fa51399
Java gson: add @SerializedName value as constant (#22)
jmini May 13, 2018
0a033c3
Code clean-up: Add own private static final LOGGER in each class (#26)
jmini May 13, 2018
5a1bbb7
[JaxRS] Add "validation-api" dependency in jetty (#30)
jmini May 13, 2018
8e461e0
Add Gitter badge (#29)
gitter-badger May 13, 2018
0aab68a
Minor enhancement to the README (#31)
wing328 May 14, 2018
f237c71
Push images to DockerHub (#32)
wing328 May 14, 2018
61531d4
add more founding team members (#37)
wing328 May 14, 2018
e8d252f
Code clean-up: remove field declaration hiding existing fields (#35)
jmini May 14, 2018
3bd8e6a
Fix isPrimitiveType flag for array of form parameters (#38)
wing328 May 14, 2018
2ed82d0
Add CI test for Elm in travis (#40)
wing328 May 15, 2018
fe7a03f
Test Go petstore client in Travis CI (#41)
wing328 May 15, 2018
c3bdb9c
Add CodegenProperty.nameInSnakeCase (#42)
jmini May 15, 2018
a797d39
Included @gustavoapaz to founding members. (#47)
gustavoapaz May 15, 2018
18c711f
Included @ricardona to founding members. (#48)
ricardona May 15, 2018
a07140f
Fix an issue with example generator when array is too large (#46)
wing328 May 15, 2018
aa10323
Move online gen from jersey to spring boot (#44)
cbornet May 15, 2018
fc84ead
Minor improvements to OpenAPI Generator Online (#54)
wing328 May 15, 2018
6150b8b
Update the aspnetcore generation (#53)
FantasyTeddy May 16, 2018
d07bb2b
[aspnetcore] Fix openapi.json location rename (#56)
jimschubert May 16, 2018
e084623
Fix online generator (docker push) (#58)
wing328 May 16, 2018
91ee302
Consider minLength, maxLength and pattern in referenced schema (#45)
jmini May 16, 2018
b57a8e6
Improvements to online codegen (#55)
cbornet May 16, 2018
6fe91c6
Better badge description (#62)
wing328 May 16, 2018
26cda25
Remove examples comment from swift3 and swift4 client (#61)
marumemomo May 16, 2018
fd78554
Fix COPY in Dockerfile (#64)
wing328 May 16, 2018
56a8d33
Use maven batch-mode (#70)
bmordue May 16, 2018
6539fd2
add links to blog posts (#72)
wing328 May 16, 2018
9855411
Revise the usage of OpenAPI Generator online (docker image) (#73)
wing328 May 16, 2018
0c3d831
Sanitize enumeration name to add underscore when it starts with digit…
Zomzog May 17, 2018
d9c7f45
Revert pull request #45 (#82)
jmini May 17, 2018
5e7aa65
Fix version for "spring-boot-maven-plugin" (#85)
jmini May 17, 2018
7f0e305
[haskell-http-client] update dependency versions + readme (#81)
jonschoning May 17, 2018
00144aa
Fix Elm generator for polymorphism (#78)
eriktim May 17, 2018
5bca75a
Add CORS configuration (#71)
cbornet May 17, 2018
5aa0ddd
Fix javadoc issues in "openapi-generator" module (#84)
jmini May 17, 2018
4397dc8
Meta: set version for "build-helper-maven-plugin" (#89)
jmini May 17, 2018
4381d18
Set parameters allowableValues dynamically (#65)
cbornet May 17, 2018
706804b
[JaxRS-Java] issue with implFolder on windows, and required fields ge…
selliera May 17, 2018
5384709
[Clojure] Add util method to set the api-context globally (#93)
f-f May 18, 2018
c65e168
Update integration.md
jmini May 18, 2018
73c0e2f
CaseFormatLambda has been added, params for Rest-assured client has b…
viclovsky May 18, 2018
7561608
Update Docker documentation (#97)
jmini May 18, 2018
ec202ab
Fix Petstore example for Elm (#96)
eriktim May 18, 2018
b470547
update elm test to compile all elm files (#95)
wing328 May 18, 2018
7e3d612
Rename datatype to dataType in CodegenProperty (#69)
jmini May 18, 2018
fcb914d
[java] Enum in array of array (#66)
jmini May 18, 2018
5136763
Update PULL_REQUEST_TEMPLATE.md
jmini May 19, 2018
b9ac4f0
[Java] use html entities in javadoc of generated code (#106)
jmini May 20, 2018
d5e8c34
DefaultGenerator: fix NullPointerException (#109)
jmini May 20, 2018
2ef4ba0
Lumen 5.6 support
Lv-Yi May 20, 2018
6d26791
recall headlines
Lv-Yi May 21, 2018
30688dc
Update composer.mustache
Lv-Yi May 23, 2018
ca832d0
eliminate conflict from origin master
Lv-Yi May 30, 2018
b90913f
eliminate conflict from origin/master
Lv-Yi May 30, 2018
1d7b43a
Merge remote-tracking branch 'origin1/master' into lumenUpgrade
Lv-Yi May 30, 2018
de1bbf5
Merge branch 'lumenUpgrade' of https://github.com/Lv-Yi/openapi-gener…
Lv-Yi May 30, 2018
bbc3bf0
sample scripts failed to recognize php-lumen
Lv-Yi May 30, 2018
be520d1
update petstore sample tests with new scripts.
Lv-Yi May 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,36 @@ public PhpLumenServerCodegen() {
* entire object tree available. If the input file has a suffix of `.mustache
* it will be processed by the template engine. Otherwise, it will be copied
*/
supportingFiles.add(new SupportingFile(".env.example", packagePath + File.separator + srcBasePath, ".env.example"));
supportingFiles.add(new SupportingFile("artisan", packagePath + File.separator + srcBasePath, "artisan"));
supportingFiles.add(new SupportingFile("composer.mustache", packagePath + File.separator + srcBasePath, "composer.json"));
supportingFiles.add(new SupportingFile("readme.md", packagePath + File.separator + srcBasePath, "readme.md"));
supportingFiles.add(new SupportingFile("app.php", packagePath + File.separator + srcBasePath + File.separator + "bootstrap", "app.php"));
supportingFiles.add(new SupportingFile("index.php", packagePath + File.separator + srcBasePath + File.separator + "public", "index.php"));
supportingFiles.add(new SupportingFile("User.php", packagePath + File.separator + srcBasePath + File.separator + "app", "User.php"));
supportingFiles.add(new SupportingFile("Kernel.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Console", "Kernel.php"));
supportingFiles.add(new SupportingFile(".gitkeep", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Console" + File.separator + "Commands", ".gitkeep"));
supportingFiles.add(new SupportingFile("Event.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Events", "Event.php"));
supportingFiles.add(new SupportingFile("ExampleEvent.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Events", "ExampleEvent.php"));
supportingFiles.add(new SupportingFile("Handler.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Exceptions", "Handler.php"));
supportingFiles.add(new SupportingFile("routes.mustache", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Http", "routes.php"));

supportingFiles.add(new SupportingFile("Controller.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Controllers" + File.separator, "Controller.php"));
supportingFiles.add(new SupportingFile("ExampleController.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Controllers" + File.separator, "ExampleController.php"));
supportingFiles.add(new SupportingFile("Authenticate.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Middleware" + File.separator, "Authenticate.php"));

supportingFiles.add(new SupportingFile("ExampleMiddleware.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Middleware" + File.separator, "ExampleMiddleware.php"));
supportingFiles.add(new SupportingFile("ExampleJob.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Jobs", "ExampleJob.php"));
supportingFiles.add(new SupportingFile("Job.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Jobs", "Job.php"));
supportingFiles.add(new SupportingFile("ExampleListener.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Listeners", "ExampleListener.php"));
supportingFiles.add(new SupportingFile("AppServiceProvider.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Providers", "AppServiceProvider.php"));
supportingFiles.add(new SupportingFile("AuthServiceProvider.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Providers", "AuthServiceProvider.php"));
supportingFiles.add(new SupportingFile("EventServiceProvider.php", packagePath + File.separator + srcBasePath + File.separator + "app" + File.separator + "Providers", "EventServiceProvider.php"));
supportingFiles.add(new SupportingFile("app.php", packagePath + File.separator + srcBasePath + File.separator + "bootstrap", "app.php"));
supportingFiles.add(new SupportingFile("ModelFactory.php", packagePath + File.separator + srcBasePath + File.separator + "database" + File.separator + "factories", "ModelFactory.php"));
supportingFiles.add(new SupportingFile(".gitkeep", packagePath + File.separator + srcBasePath + File.separator + "database" + File.separator + "migrations", ".gitkeep"));
supportingFiles.add(new SupportingFile("DatabaseSeeder.php", packagePath + File.separator + srcBasePath + File.separator + "database" + File.separator + "seeds", "DatabaseSeeder.php"));
supportingFiles.add(new SupportingFile(".htaccess", packagePath + File.separator + srcBasePath + File.separator + "public", ".htaccess"));
supportingFiles.add(new SupportingFile("index.php", packagePath + File.separator + srcBasePath + File.separator + "public", "index.php"));
supportingFiles.add(new SupportingFile(".gitkeep", packagePath + File.separator + srcBasePath + File.separator + "resources" + File.separator + "views", ".gitkeep"));
supportingFiles.add(new SupportingFile("routes.mustache", packagePath + File.separator + srcBasePath + File.separator + "routes", "web.php"));
supportingFiles.add(new SupportingFile("ExampleTest.php", packagePath + File.separator + srcBasePath + File.separator + "tests", "ExampleTest.php"));
supportingFiles.add(new SupportingFile("TestCase.php", packagePath + File.separator + srcBasePath + File.separator + "tests", "TestCase.php"));
}

// override with any special post-processing
Expand Down
17 changes: 17 additions & 0 deletions modules/openapi-generator/src/main/resources/lumen/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
APP_ENV=local
APP_DEBUG=true
APP_KEY=
APP_TIMEZONE=UTC

LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

CACHE_DRIVER=file
QUEUE_DRIVER=sync
Empty file.
21 changes: 21 additions & 0 deletions modules/openapi-generator/src/main/resources/lumen/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

namespace App\Providers;

use App\User;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;

class AuthServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}

/**
* Boot the authentication services for the application.
*
* @return void
*/
public function boot()
{
// Here you may define how you wish users to be authenticated for your Lumen
// application. The callback which receives the incoming request instance
// should return either a User instance or null. You're free to obtain
// the User instance via an API token or any other method necessary.

$this->app['auth']->viaRequest('api', function ($request) {
if ($request->input('api_token')) {
return User::where('api_token', $request->input('api_token'))->first();
}
});
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<?php

/**
Copy link
Member

Choose a reason for hiding this comment

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

Personally I prefer to keep this for "growth hacking" so that users will know that these files are generated by OpenAPI Generator.

Copy link
Author

Choose a reason for hiding this comment

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

not a problem. I will recall the headlines.

* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

namespace App\Http\Middleware;

use Closure;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// $this->call('UsersTableSeeder');
}
}
10 changes: 10 additions & 0 deletions modules/openapi-generator/src/main/resources/lumen/Event.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Events;

use Illuminate\Queue\SerializesModels;

abstract class Event
{
use SerializesModels;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace App\Providers;

use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'App\Events\ExampleEvent' => [
'App\Listeners\ExampleListener',
],
];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace App\Http\Controllers;

class ExampleController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
//
}

//
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace App\Events;

class ExampleEvent extends Event
{
/**
* Create a new event instance.
*
* @return void
*/
public function __construct()
{
//
}
}
26 changes: 26 additions & 0 deletions modules/openapi-generator/src/main/resources/lumen/ExampleJob.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace App\Jobs;

class ExampleJob extends Job
{
/**
* Create a new job instance.
*
* @return void
*/
public function __construct()
{
//
}

/**
* Execute the job.
*
* @return void
*/
public function handle()
{
//
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace App\Listeners;

use App\Events\ExampleEvent;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;

class ExampleListener
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}

/**
* Handle the event.
*
* @param ExampleEvent $event
* @return void
*/
public function handle(ExampleEvent $event)
{
//
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace App\Http\Middleware;

use Closure;

class ExampleMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
return $next($request);
}
}
21 changes: 21 additions & 0 deletions modules/openapi-generator/src/main/resources/lumen/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

use Laravel\Lumen\Testing\DatabaseMigrations;
use Laravel\Lumen\Testing\DatabaseTransactions;

class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testExample()
{
$this->get('/');

$this->assertEquals(
$this->app->version(), $this->response->getContent()
);
}
}
24 changes: 24 additions & 0 deletions modules/openapi-generator/src/main/resources/lumen/Job.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace App\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;

abstract class Job implements ShouldQueue
{
/*
|--------------------------------------------------------------------------
| Queueable Jobs
|--------------------------------------------------------------------------
|
| This job base class provides a central location to place any logic that
| is shared across all of your jobs. The trait included with the class
| provides access to the "queueOn" and "delay" queue helper methods.
|
*/

use InteractsWithQueue, Queueable, SerializesModels;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
|
*/

$factory->define(App\User::class, function (Faker\Generator $faker) {
return [
'name' => $faker->name,
'email' => $faker->email,
];
});
14 changes: 14 additions & 0 deletions modules/openapi-generator/src/main/resources/lumen/TestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

abstract class TestCase extends Laravel\Lumen\Testing\TestCase
{
/**
* Creates the application.
*
* @return \Laravel\Lumen\Application
*/
public function createApplication()
{
return require __DIR__.'/../bootstrap/app.php';
}
}
Loading