Total Complexity | 7 |
Total Lines | 71 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class SSOServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Configuration file name. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $configFileName = 'laravel-sso.php'; |
||
16 | |||
17 | /** |
||
18 | * Bootstrap services. |
||
19 | * |
||
20 | * @return void |
||
21 | */ |
||
22 | public function boot() |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Register services. |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function register() |
||
45 | { |
||
46 | $this->app->make('Zefy\LaravelSSO\Controllers\ServerController'); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Get the config path |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | protected function getConfigPath() |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Publish the config file |
||
61 | * |
||
62 | * @param string $configPath |
||
63 | */ |
||
64 | protected function publishConfig(string $configPath) |
||
65 | { |
||
66 | $this->publishes([$configPath => $this->getConfigPath()]); |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * Load necessary routes. |
||
71 | * |
||
72 | * @return void |
||
73 | */ |
||
74 | protected function loadRoutes() |
||
79 | } |
||
80 | } |
||
81 | } |
||
82 |