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