1 | <?php |
||
8 | class MenusServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Indicates if loading of the provider is deferred. |
||
12 | * |
||
13 | * @var bool |
||
14 | */ |
||
15 | protected $defer = true; |
||
16 | |||
17 | /** |
||
18 | * Bootstrap the application events. |
||
19 | */ |
||
20 | 32 | public function boot() |
|
25 | |||
26 | /** |
||
27 | * Require the menus file if that file is exists. |
||
28 | */ |
||
29 | 32 | public function registerMenusFile() |
|
35 | |||
36 | /** |
||
37 | * Register the service provider. |
||
38 | */ |
||
39 | 32 | public function register() |
|
47 | |||
48 | /** |
||
49 | * Register "iluminate/html" package. |
||
50 | */ |
||
51 | 32 | private function registerHtmlPackage() |
|
62 | |||
63 | /** |
||
64 | * Get the services provided by the provider. |
||
65 | * |
||
66 | * @return array |
||
67 | */ |
||
68 | public function provides() |
||
69 | { |
||
70 | return ['menus']; |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * Register package's namespaces. |
||
75 | */ |
||
76 | 32 | protected function registerNamespaces() |
|
91 | } |
||
92 |