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 | 33 | public function boot() |
|
25 | |||
26 | /** |
||
27 | * Require the menus file if that file is exists. |
||
28 | */ |
||
29 | 33 | public function registerMenusFile() |
|
35 | |||
36 | /** |
||
37 | * Register the service provider. |
||
38 | */ |
||
39 | 33 | public function register() |
|
47 | |||
48 | /** |
||
49 | * Register "iluminate/html" package. |
||
50 | */ |
||
51 | 33 | private function registerHtmlPackage() |
|
52 | { |
||
53 | 33 | $this->app->register('Collective\Html\HtmlServiceProvider'); |
|
54 | |||
55 | $aliases = [ |
||
56 | 33 | 'HTML' => 'Collective\Html\HtmlFacade', |
|
57 | 33 | 'Form' => 'Collective\Html\FormFacade', |
|
58 | 33 | ]; |
|
59 | |||
60 | 33 | AliasLoader::getInstance($aliases)->register(); |
|
61 | 33 | } |
|
62 | |||
63 | /** |
||
64 | * Get the services provided by the provider. |
||
65 | * |
||
66 | * @return array |
||
67 | */ |
||
68 | 1 | public function provides() |
|
72 | |||
73 | /** |
||
74 | * Register package's namespaces. |
||
75 | */ |
||
76 | 33 | protected function registerNamespaces() |
|
91 | } |
||
92 |