77 * For the full copyright and license information, please view the LICENSE
88 * file that was distributed with this source code.
99 */
10+
1011namespace ATehnix \LaravelStubs \Providers ;
1112
12- use ATehnix \LaravelStubs \Console ;
13+ use ATehnix \LaravelStubs \Console \ConsoleMakeCommand ;
14+ use ATehnix \LaravelStubs \Console \ControllerMakeCommand ;
15+ use ATehnix \LaravelStubs \Console \EventMakeCommand ;
16+ use ATehnix \LaravelStubs \Console \ExceptionMakeCommand ;
17+ use ATehnix \LaravelStubs \Console \FactoryMakeCommand ;
18+ use ATehnix \LaravelStubs \Console \JobMakeCommand ;
19+ use ATehnix \LaravelStubs \Console \ListenerMakeCommand ;
20+ use ATehnix \LaravelStubs \Console \MailMakeCommand ;
21+ use ATehnix \LaravelStubs \Console \MiddlewareMakeCommand ;
22+ use ATehnix \LaravelStubs \Console \ModelMakeCommand ;
23+ use ATehnix \LaravelStubs \Console \NotificationMakeCommand ;
24+ use ATehnix \LaravelStubs \Console \PolicyMakeCommand ;
25+ use ATehnix \LaravelStubs \Console \ProviderMakeCommand ;
26+ use ATehnix \LaravelStubs \Console \RequestMakeCommand ;
27+ use ATehnix \LaravelStubs \Console \ResourceMakeCommand ;
28+ use ATehnix \LaravelStubs \Console \RuleMakeCommand ;
29+ use ATehnix \LaravelStubs \Console \SeederMakeCommand ;
30+ use ATehnix \LaravelStubs \Console \StubsPublishCommand ;
31+ use ATehnix \LaravelStubs \Console \TestMakeCommand ;
1332use Illuminate \Foundation \Providers \ArtisanServiceProvider as BaseServiceProvider ;
1433
1534class ArtisanServiceProvider extends BaseServiceProvider
@@ -21,7 +40,7 @@ class ArtisanServiceProvider extends BaseServiceProvider
2140 */
2241 public function boot ()
2342 {
24- $ this ->commands (Console \ StubsPublishCommand::class);
43+ $ this ->commands (StubsPublishCommand::class);
2544 }
2645
2746 /**
@@ -32,7 +51,7 @@ public function boot()
3251 protected function registerConsoleMakeCommand ()
3352 {
3453 $ this ->app ->singleton ('command.console.make ' , function ($ app ) {
35- return new Console \ ConsoleMakeCommand ($ app ['files ' ]);
54+ return new ConsoleMakeCommand ($ app ['files ' ]);
3655 });
3756 }
3857
@@ -44,7 +63,7 @@ protected function registerConsoleMakeCommand()
4463 protected function registerControllerMakeCommand ()
4564 {
4665 $ this ->app ->singleton ('command.controller.make ' , function ($ app ) {
47- return new Console \ ControllerMakeCommand ($ app ['files ' ]);
66+ return new ControllerMakeCommand ($ app ['files ' ]);
4867 });
4968 }
5069
@@ -56,7 +75,31 @@ protected function registerControllerMakeCommand()
5675 protected function registerEventMakeCommand ()
5776 {
5877 $ this ->app ->singleton ('command.event.make ' , function ($ app ) {
59- return new Console \EventMakeCommand ($ app ['files ' ]);
78+ return new EventMakeCommand ($ app ['files ' ]);
79+ });
80+ }
81+
82+ /**
83+ * Register the command.
84+ *
85+ * @return void
86+ */
87+ protected function registerExceptionMakeCommand ()
88+ {
89+ $ this ->app ->singleton ('command.exception.make ' , function ($ app ) {
90+ return new ExceptionMakeCommand ($ app ['files ' ]);
91+ });
92+ }
93+
94+ /**
95+ * Register the command.
96+ *
97+ * @return void
98+ */
99+ protected function registerFactoryMakeCommand ()
100+ {
101+ $ this ->app ->singleton ('command.factory.make ' , function ($ app ) {
102+ return new FactoryMakeCommand ($ app ['files ' ]);
60103 });
61104 }
62105
@@ -68,7 +111,7 @@ protected function registerEventMakeCommand()
68111 protected function registerJobMakeCommand ()
69112 {
70113 $ this ->app ->singleton ('command.job.make ' , function ($ app ) {
71- return new Console \ JobMakeCommand ($ app ['files ' ]);
114+ return new JobMakeCommand ($ app ['files ' ]);
72115 });
73116 }
74117
@@ -80,7 +123,7 @@ protected function registerJobMakeCommand()
80123 protected function registerListenerMakeCommand ()
81124 {
82125 $ this ->app ->singleton ('command.listener.make ' , function ($ app ) {
83- return new Console \ ListenerMakeCommand ($ app ['files ' ]);
126+ return new ListenerMakeCommand ($ app ['files ' ]);
84127 });
85128 }
86129
@@ -92,7 +135,7 @@ protected function registerListenerMakeCommand()
92135 protected function registerMailMakeCommand ()
93136 {
94137 $ this ->app ->singleton ('command.mail.make ' , function ($ app ) {
95- return new Console \ MailMakeCommand ($ app ['files ' ]);
138+ return new MailMakeCommand ($ app ['files ' ]);
96139 });
97140 }
98141
@@ -104,7 +147,7 @@ protected function registerMailMakeCommand()
104147 protected function registerMiddlewareMakeCommand ()
105148 {
106149 $ this ->app ->singleton ('command.middleware.make ' , function ($ app ) {
107- return new Console \ MiddlewareMakeCommand ($ app ['files ' ]);
150+ return new MiddlewareMakeCommand ($ app ['files ' ]);
108151 });
109152 }
110153
@@ -116,7 +159,7 @@ protected function registerMiddlewareMakeCommand()
116159 protected function registerModelMakeCommand ()
117160 {
118161 $ this ->app ->singleton ('command.model.make ' , function ($ app ) {
119- return new Console \ ModelMakeCommand ($ app ['files ' ]);
162+ return new ModelMakeCommand ($ app ['files ' ]);
120163 });
121164 }
122165
@@ -128,7 +171,7 @@ protected function registerModelMakeCommand()
128171 protected function registerNotificationMakeCommand ()
129172 {
130173 $ this ->app ->singleton ('command.notification.make ' , function ($ app ) {
131- return new Console \ NotificationMakeCommand ($ app ['files ' ]);
174+ return new NotificationMakeCommand ($ app ['files ' ]);
132175 });
133176 }
134177
@@ -140,7 +183,7 @@ protected function registerNotificationMakeCommand()
140183 protected function registerProviderMakeCommand ()
141184 {
142185 $ this ->app ->singleton ('command.provider.make ' , function ($ app ) {
143- return new Console \ ProviderMakeCommand ($ app ['files ' ]);
186+ return new ProviderMakeCommand ($ app ['files ' ]);
144187 });
145188 }
146189
@@ -152,7 +195,31 @@ protected function registerProviderMakeCommand()
152195 protected function registerRequestMakeCommand ()
153196 {
154197 $ this ->app ->singleton ('command.request.make ' , function ($ app ) {
155- return new Console \RequestMakeCommand ($ app ['files ' ]);
198+ return new RequestMakeCommand ($ app ['files ' ]);
199+ });
200+ }
201+
202+ /**
203+ * Register the command.
204+ *
205+ * @return void
206+ */
207+ protected function registerResourceMakeCommand ()
208+ {
209+ $ this ->app ->singleton ('command.resource.make ' , function ($ app ) {
210+ return new ResourceMakeCommand ($ app ['files ' ]);
211+ });
212+ }
213+
214+ /**
215+ * Register the command.
216+ *
217+ * @return void
218+ */
219+ protected function registerRuleMakeCommand ()
220+ {
221+ $ this ->app ->singleton ('command.rule.make ' , function ($ app ) {
222+ return new RuleMakeCommand ($ app ['files ' ]);
156223 });
157224 }
158225
@@ -164,7 +231,7 @@ protected function registerRequestMakeCommand()
164231 protected function registerSeederMakeCommand ()
165232 {
166233 $ this ->app ->singleton ('command.seeder.make ' , function ($ app ) {
167- return new Console \ SeederMakeCommand ($ app ['files ' ], $ app ['composer ' ]);
234+ return new SeederMakeCommand ($ app ['files ' ], $ app ['composer ' ]);
168235 });
169236 }
170237
@@ -176,7 +243,7 @@ protected function registerSeederMakeCommand()
176243 protected function registerTestMakeCommand ()
177244 {
178245 $ this ->app ->singleton ('command.test.make ' , function ($ app ) {
179- return new Console \ TestMakeCommand ($ app ['files ' ]);
246+ return new TestMakeCommand ($ app ['files ' ]);
180247 });
181248 }
182249
@@ -188,7 +255,7 @@ protected function registerTestMakeCommand()
188255 protected function registerPolicyMakeCommand ()
189256 {
190257 $ this ->app ->singleton ('command.policy.make ' , function ($ app ) {
191- return new Console \ PolicyMakeCommand ($ app ['files ' ]);
258+ return new PolicyMakeCommand ($ app ['files ' ]);
192259 });
193260 }
194261}
0 commit comments