1 | <?php |
||
17 | class ServiceProvider extends IlluminateServiceProvider |
||
18 | { |
||
19 | use Routing; |
||
20 | |||
21 | /** |
||
22 | * The application instance. |
||
23 | * |
||
24 | * @var \Illuminate\Foundation\Application |
||
25 | */ |
||
26 | protected $app; |
||
27 | |||
28 | /** |
||
29 | * Resource loader instance. |
||
30 | * |
||
31 | * @var |
||
32 | */ |
||
33 | protected $resourceLoader; |
||
34 | |||
35 | /** |
||
36 | * The health service. |
||
37 | * |
||
38 | * @var |
||
39 | */ |
||
40 | private $healthService; |
||
41 | |||
42 | /** |
||
43 | * All artisan commands. |
||
44 | * |
||
45 | * @var |
||
46 | */ |
||
47 | private $commands; |
||
48 | |||
49 | /** |
||
50 | * The router. |
||
51 | * |
||
52 | * @var |
||
53 | */ |
||
54 | private $router; |
||
55 | |||
56 | /** |
||
57 | * Cache closure. |
||
58 | * |
||
59 | * @var |
||
60 | */ |
||
61 | private $cacheClosure; |
||
62 | |||
63 | /** |
||
64 | * Resource checker closure. |
||
65 | * |
||
66 | * @var |
||
67 | */ |
||
68 | private $resourceCheckerClosure; |
||
69 | |||
70 | /** |
||
71 | * Health service closure. |
||
72 | * |
||
73 | * @var |
||
74 | */ |
||
75 | private $healthServiceClosure; |
||
76 | |||
77 | /** |
||
78 | * Configure package paths. |
||
79 | */ |
||
80 | private function configurePaths() |
||
112 | |||
113 | /** |
||
114 | * Configure package folder views. |
||
115 | */ |
||
116 | private function configureViews() |
||
123 | |||
124 | /** |
||
125 | * Create health service. |
||
126 | */ |
||
127 | private function createHealthService() |
||
142 | |||
143 | /** |
||
144 | * Create resource checker. |
||
145 | */ |
||
146 | private function createResourceChecker() |
||
157 | |||
158 | /** |
||
159 | * Get the cache closure for instantiation. |
||
160 | * |
||
161 | * @return \Closure |
||
162 | */ |
||
163 | private function getCacheClosure() |
||
171 | |||
172 | /** |
||
173 | * Return the health service. |
||
174 | * |
||
175 | * @return mixed |
||
176 | */ |
||
177 | public function getHealthService() |
||
181 | |||
182 | /** |
||
183 | * Get the resource checker closure for instantiation. |
||
184 | * |
||
185 | * @param $resourceLoader |
||
186 | * @param $cache |
||
187 | * @return \Closure |
||
188 | */ |
||
189 | private function getResourceCheckerClosure($resourceLoader, $cache) |
||
197 | |||
198 | /** |
||
199 | * Get the list of routes. |
||
200 | * |
||
201 | * @return array |
||
202 | */ |
||
203 | private function getRoutes() |
||
207 | |||
208 | /** |
||
209 | * Instantiate commands. |
||
210 | * |
||
211 | * @return \Illuminate\Foundation\Application|mixed |
||
212 | */ |
||
213 | private function instantiateCommands() |
||
219 | |||
220 | /** |
||
221 | * Instantiate the main service. |
||
222 | * |
||
223 | * @param $resourceChecker |
||
224 | * @param $cache |
||
225 | * @return Service |
||
226 | */ |
||
227 | private function instantiateService($resourceChecker, $cache) |
||
231 | |||
232 | /** |
||
233 | * Merge configuration. |
||
234 | */ |
||
235 | private function mergeConfig() |
||
243 | |||
244 | /** |
||
245 | * Register any application services. |
||
246 | * |
||
247 | * @return void |
||
248 | */ |
||
249 | public function register() |
||
267 | |||
268 | private function registerResourcesRoutes() |
||
278 | |||
279 | /** |
||
280 | * Register console commands. |
||
281 | */ |
||
282 | private function registerConsoleCommands() |
||
302 | |||
303 | /** |
||
304 | * Register event listeners. |
||
305 | */ |
||
306 | private function registerEventListeners() |
||
310 | |||
311 | /** |
||
312 | * Register routes. |
||
313 | */ |
||
314 | private function registerRoutes() |
||
322 | |||
323 | /** |
||
324 | * Register service. |
||
325 | */ |
||
326 | private function registerServices() |
||
344 | |||
345 | /** |
||
346 | * Create services. |
||
347 | */ |
||
348 | public function createServices() |
||
354 | |||
355 | /** |
||
356 | * Register scheduled tasks. |
||
357 | */ |
||
358 | private function registerTasks() |
||
372 | |||
373 | /** |
||
374 | * Get the services provided by the provider. |
||
375 | * |
||
376 | * @return array |
||
377 | */ |
||
378 | public function provides() |
||
387 | } |
||
388 |