|
1
|
|
|
<?php namespace Arcanesoft\Core\Providers; |
|
2
|
|
|
|
|
3
|
|
|
use Arcanedev\Breadcrumbs\BreadcrumbsServiceProvider; |
|
4
|
|
|
use Arcanedev\Hasher\HasherServiceProvider; |
|
5
|
|
|
use Arcanedev\LaravelActive\LaravelActiveServiceProvider; |
|
6
|
|
|
use Arcanedev\LaravelApiHelper\ApiHelperServiceProvider; |
|
7
|
|
|
use Arcanedev\LaravelHtml\HtmlServiceProvider; |
|
8
|
|
|
use Arcanedev\LaravelSettings\SettingsServiceProvider; |
|
9
|
|
|
use Arcanedev\SeoHelper\SeoHelperServiceProvider; |
|
10
|
|
|
use Arcanedev\Support\ServiceProvider; |
|
11
|
|
|
use Arcanesoft\Sidebar\SidebarServiceProvider; |
|
12
|
|
|
|
|
13
|
|
|
/** |
|
14
|
|
|
* Class PackagesServiceProvider |
|
15
|
|
|
* |
|
16
|
|
|
* @package Arcanesoft\Core\Providers |
|
17
|
|
|
* @author ARCANEDEV <[email protected]> |
|
18
|
|
|
*/ |
|
19
|
|
|
class PackagesServiceProvider extends ServiceProvider |
|
20
|
|
|
{ |
|
21
|
|
|
/* ----------------------------------------------------------------- |
|
22
|
|
|
| Main Methods |
|
23
|
|
|
| ----------------------------------------------------------------- |
|
24
|
|
|
*/ |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* Register the service provider. |
|
28
|
|
|
*/ |
|
29
|
124 |
|
public function register() |
|
30
|
|
|
{ |
|
31
|
124 |
|
parent::register(); |
|
32
|
|
|
|
|
33
|
124 |
|
$this->registerLaravelActive(); |
|
34
|
124 |
|
$this->registerLaravelApiHelperPackage(); |
|
35
|
124 |
|
$this->registerBreadcrumbsPackage(); |
|
36
|
124 |
|
$this->registerHasherPackage(); |
|
37
|
124 |
|
$this->registerLaravelHtmlPackage(); |
|
38
|
124 |
|
$this->registerNotifyPackage(); |
|
39
|
124 |
|
$this->registerSeoHelperPackage(); |
|
40
|
124 |
|
$this->registerSettingsPackage(); |
|
41
|
124 |
|
$this->registerSidebarPackage(); |
|
42
|
|
|
|
|
43
|
124 |
|
$this->registerAliases(); |
|
44
|
124 |
|
} |
|
45
|
|
|
|
|
46
|
|
|
/* ----------------------------------------------------------------- |
|
47
|
|
|
| Packages |
|
48
|
|
|
| ----------------------------------------------------------------- |
|
49
|
|
|
*/ |
|
50
|
|
|
|
|
51
|
|
|
/** |
|
52
|
|
|
* Register the Laravel Active package. |
|
53
|
|
|
*/ |
|
54
|
124 |
|
private function registerLaravelActive() |
|
55
|
|
|
{ |
|
56
|
124 |
|
$this->registerProvider(LaravelActiveServiceProvider::class); |
|
57
|
124 |
|
} |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* Register the API Helper Package. |
|
61
|
|
|
*/ |
|
62
|
124 |
|
private function registerLaravelApiHelperPackage() |
|
63
|
|
|
{ |
|
64
|
124 |
|
$this->registerProvider(ApiHelperServiceProvider::class); |
|
65
|
124 |
|
} |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* Register the Settings Package. |
|
69
|
|
|
*/ |
|
70
|
124 |
|
private function registerSettingsPackage() |
|
71
|
|
|
{ |
|
72
|
124 |
|
$this->registerProvider(SettingsServiceProvider::class); |
|
73
|
|
|
|
|
74
|
124 |
|
$this->alias('Settings', \Arcanedev\LaravelSettings\Facades\Settings::class); |
|
75
|
124 |
|
} |
|
76
|
|
|
|
|
77
|
|
|
/** |
|
78
|
|
|
* Register the Hasher Package. |
|
79
|
|
|
*/ |
|
80
|
124 |
|
private function registerHasherPackage() |
|
81
|
|
|
{ |
|
82
|
124 |
|
$this->registerProvider(HasherServiceProvider::class); |
|
83
|
|
|
|
|
84
|
124 |
|
$this->alias('Hasher', \Arcanedev\Hasher\Facades\Hasher::class); |
|
85
|
124 |
|
} |
|
86
|
|
|
|
|
87
|
|
|
/** |
|
88
|
|
|
* Register the Laravel Html Package |
|
89
|
|
|
*/ |
|
90
|
124 |
|
private function registerLaravelHtmlPackage() |
|
91
|
|
|
{ |
|
92
|
124 |
|
$this->registerProvider(HtmlServiceProvider::class); |
|
93
|
|
|
|
|
94
|
124 |
|
$this->alias('Html', \Arcanedev\LaravelHtml\Facades\Html::class); |
|
95
|
124 |
|
$this->alias('Form', \Arcanedev\LaravelHtml\Facades\Form::class); |
|
96
|
124 |
|
} |
|
97
|
|
|
|
|
98
|
|
|
/** |
|
99
|
|
|
* Register SEO Helper Package. |
|
100
|
|
|
*/ |
|
101
|
124 |
|
private function registerSeoHelperPackage() |
|
102
|
|
|
{ |
|
103
|
124 |
|
$this->registerProvider(SeoHelperServiceProvider::class); |
|
104
|
|
|
|
|
105
|
124 |
|
$this->alias('SeoHelper', \Arcanedev\SeoHelper\Facades\SeoHelper::class); |
|
106
|
124 |
|
} |
|
107
|
|
|
|
|
108
|
|
|
/** |
|
109
|
|
|
* Register the Breadcrumbs Package. |
|
110
|
|
|
*/ |
|
111
|
124 |
|
private function registerBreadcrumbsPackage() |
|
112
|
|
|
{ |
|
113
|
124 |
|
$this->registerProvider(BreadcrumbsServiceProvider::class); |
|
114
|
|
|
|
|
115
|
124 |
|
$this->alias('Breadcrumbs', \Arcanedev\Breadcrumbs\Facades\Breadcrumbs::class); |
|
116
|
124 |
|
} |
|
117
|
|
|
|
|
118
|
|
|
/** |
|
119
|
|
|
* Register the Notify Package. |
|
120
|
|
|
*/ |
|
121
|
124 |
|
private function registerNotifyPackage() |
|
122
|
|
|
{ |
|
123
|
124 |
|
$this->registerProvider(\Arcanedev\Notify\NotifyServiceProvider::class); |
|
124
|
|
|
|
|
125
|
124 |
|
$this->alias('Notify', \Arcanedev\Notify\Facades\Notify::class); |
|
126
|
124 |
|
} |
|
127
|
|
|
|
|
128
|
|
|
/** |
|
129
|
|
|
* Register the Sidebar Package. |
|
130
|
|
|
*/ |
|
131
|
124 |
|
private function registerSidebarPackage() |
|
132
|
|
|
{ |
|
133
|
124 |
|
$this->registerProvider(SidebarServiceProvider::class); |
|
134
|
|
|
|
|
135
|
124 |
|
$this->alias('Sidebar', \Arcanesoft\Sidebar\Facades\Sidebar::class); |
|
136
|
124 |
|
} |
|
137
|
|
|
} |
|
138
|
|
|
|