@@ -99,18 +99,37 @@ public PhpLumenServerCodegen() {
99
99
* entire object tree available. If the input file has a suffix of `.mustache
100
100
* it will be processed by the template engine. Otherwise, it will be copied
101
101
*/
102
+ supportingFiles .add (new SupportingFile (".env.example" , packagePath + File .separator + srcBasePath , ".env.example" ));
103
+ supportingFiles .add (new SupportingFile ("storage_logs_.gitignore" , packagePath + File .separator + srcBasePath + File .separator + "storage" + File .separator + "logs" , ".gitignore" ));
104
+ supportingFiles .add (new SupportingFile ("artisan" , packagePath + File .separator + srcBasePath , "artisan" ));
102
105
supportingFiles .add (new SupportingFile ("composer.mustache" , packagePath + File .separator + srcBasePath , "composer.json" ));
103
106
supportingFiles .add (new SupportingFile ("readme.md" , packagePath + File .separator + srcBasePath , "readme.md" ));
104
- supportingFiles .add (new SupportingFile ("app.php" , packagePath + File .separator + srcBasePath + File .separator + "bootstrap" , "app.php" ));
105
- supportingFiles .add (new SupportingFile ("index.php" , packagePath + File .separator + srcBasePath + File .separator + "public" , "index.php" ));
106
107
supportingFiles .add (new SupportingFile ("User.php" , packagePath + File .separator + srcBasePath + File .separator + "app" , "User.php" ));
107
108
supportingFiles .add (new SupportingFile ("Kernel.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Console" , "Kernel.php" ));
109
+ supportingFiles .add (new SupportingFile (".gitkeep" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Console" + File .separator + "Commands" , ".gitkeep" ));
110
+ supportingFiles .add (new SupportingFile ("Event.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Events" , "Event.php" ));
111
+ supportingFiles .add (new SupportingFile ("ExampleEvent.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Events" , "ExampleEvent.php" ));
108
112
supportingFiles .add (new SupportingFile ("Handler.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Exceptions" , "Handler.php" ));
109
- supportingFiles .add (new SupportingFile ("routes.mustache" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Http" , "routes.php" ));
110
-
111
113
supportingFiles .add (new SupportingFile ("Controller.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Http" + File .separator + "Controllers" + File .separator , "Controller.php" ));
114
+ supportingFiles .add (new SupportingFile ("ExampleController.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Http" + File .separator + "Controllers" + File .separator , "ExampleController.php" ));
112
115
supportingFiles .add (new SupportingFile ("Authenticate.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Http" + File .separator + "Middleware" + File .separator , "Authenticate.php" ));
113
-
116
+ supportingFiles .add (new SupportingFile ("ExampleMiddleware.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Http" + File .separator + "Middleware" + File .separator , "ExampleMiddleware.php" ));
117
+ supportingFiles .add (new SupportingFile ("ExampleJob.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Jobs" , "ExampleJob.php" ));
118
+ supportingFiles .add (new SupportingFile ("Job.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Jobs" , "Job.php" ));
119
+ supportingFiles .add (new SupportingFile ("ExampleListener.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Listeners" , "ExampleListener.php" ));
120
+ supportingFiles .add (new SupportingFile ("AppServiceProvider.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Providers" , "AppServiceProvider.php" ));
121
+ supportingFiles .add (new SupportingFile ("AuthServiceProvider.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Providers" , "AuthServiceProvider.php" ));
122
+ supportingFiles .add (new SupportingFile ("EventServiceProvider.php" , packagePath + File .separator + srcBasePath + File .separator + "app" + File .separator + "Providers" , "EventServiceProvider.php" ));
123
+ supportingFiles .add (new SupportingFile ("app.php" , packagePath + File .separator + srcBasePath + File .separator + "bootstrap" , "app.php" ));
124
+ supportingFiles .add (new SupportingFile ("ModelFactory.php" , packagePath + File .separator + srcBasePath + File .separator + "database" + File .separator + "factories" , "ModelFactory.php" ));
125
+ supportingFiles .add (new SupportingFile (".gitkeep" , packagePath + File .separator + srcBasePath + File .separator + "database" + File .separator + "migrations" , ".gitkeep" ));
126
+ supportingFiles .add (new SupportingFile ("DatabaseSeeder.php" , packagePath + File .separator + srcBasePath + File .separator + "database" + File .separator + "seeds" , "DatabaseSeeder.php" ));
127
+ supportingFiles .add (new SupportingFile (".htaccess" , packagePath + File .separator + srcBasePath + File .separator + "public" , ".htaccess" ));
128
+ supportingFiles .add (new SupportingFile ("index.php" , packagePath + File .separator + srcBasePath + File .separator + "public" , "index.php" ));
129
+ supportingFiles .add (new SupportingFile (".gitkeep" , packagePath + File .separator + srcBasePath + File .separator + "resources" + File .separator + "views" , ".gitkeep" ));
130
+ supportingFiles .add (new SupportingFile ("routes.mustache" , packagePath + File .separator + srcBasePath + File .separator + "routes" , "web.php" ));
131
+ supportingFiles .add (new SupportingFile ("ExampleTest.php" , packagePath + File .separator + srcBasePath + File .separator + "tests" , "ExampleTest.php" ));
132
+ supportingFiles .add (new SupportingFile ("TestCase.php" , packagePath + File .separator + srcBasePath + File .separator + "tests" , "TestCase.php" ));
114
133
}
115
134
116
135
// override with any special post-processing
0 commit comments