1
|
|
|
<?php namespace Arcanesoft\Auth; |
2
|
|
|
|
3
|
|
|
use Arcanesoft\Core\Bases\PackageServiceProvider; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class AuthServiceProvider |
7
|
|
|
* |
8
|
|
|
* @package Arcanesoft\Auth |
9
|
|
|
* @author ARCANEDEV <[email protected]> |
10
|
|
|
*/ |
11
|
|
|
class AuthServiceProvider extends PackageServiceProvider |
|
|
|
|
12
|
|
|
{ |
13
|
|
|
/* ------------------------------------------------------------------------------------------------ |
14
|
|
|
| Properties |
15
|
|
|
| ------------------------------------------------------------------------------------------------ |
16
|
|
|
*/ |
17
|
|
|
/** |
18
|
|
|
* Package name. |
19
|
|
|
* |
20
|
|
|
* @var string |
21
|
|
|
*/ |
22
|
|
|
protected $package = 'auth'; |
23
|
|
|
|
24
|
|
|
/* ------------------------------------------------------------------------------------------------ |
25
|
|
|
| Main Functions |
26
|
|
|
| ------------------------------------------------------------------------------------------------ |
27
|
|
|
*/ |
28
|
|
|
/** |
29
|
|
|
* Register the service provider. |
30
|
|
|
*/ |
31
|
12 |
|
public function register() |
32
|
|
|
{ |
33
|
12 |
|
parent::register(); |
34
|
|
|
|
35
|
12 |
|
$this->registerConfig(); |
36
|
12 |
|
$this->registerSidebarItems(); |
37
|
12 |
|
$this->registerProviders([ |
38
|
12 |
|
Providers\EventServiceProvider::class, |
39
|
6 |
|
Providers\PackagesServiceProvider::class, |
40
|
6 |
|
Providers\AuthorizationServiceProvider::class, |
41
|
6 |
|
Providers\ViewComposerServiceProvider::class, |
42
|
6 |
|
]); |
43
|
|
|
|
44
|
12 |
|
$this->registerConsoleServiceProvider(Providers\CommandServiceProvider::class); |
45
|
12 |
|
} |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* Boot the service provider. |
49
|
|
|
*/ |
50
|
12 |
|
public function boot() |
51
|
|
|
{ |
52
|
12 |
|
parent::boot(); |
53
|
|
|
|
54
|
12 |
|
$this->registerProviders([ |
55
|
12 |
|
Providers\RouteServiceProvider::class, |
56
|
6 |
|
Providers\ValidatorServiceProvider::class, |
57
|
6 |
|
]); |
58
|
|
|
|
59
|
|
|
// Publishes |
60
|
12 |
|
$this->publishConfig(); |
61
|
12 |
|
$this->publishViews(); |
62
|
12 |
|
$this->publishTranslations(); |
63
|
12 |
|
$this->publishSidebarItems(); |
64
|
12 |
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* Get the services provided by the provider. |
68
|
|
|
* |
69
|
|
|
* @return array |
70
|
|
|
*/ |
71
|
2 |
|
public function provides() |
72
|
|
|
{ |
73
|
|
|
return [ |
74
|
|
|
// |
75
|
2 |
|
]; |
76
|
|
|
} |
77
|
|
|
} |
78
|
|
|
|