1 | <?php namespace Neomerx\CorsIlluminate\Providers; |
||
32 | class LaravelServiceProvider extends ServiceProvider |
||
33 | { |
||
34 | /** Config file name without extension */ |
||
35 | const CONFIG_FILE_NAME_WO_EXT = 'cors-illuminate'; |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | protected $defer = false; |
||
41 | |||
42 | /** |
||
43 | * @var bool|null|LoggerInterface |
||
44 | */ |
||
45 | private $logger = false; |
||
46 | |||
47 | /** |
||
48 | * @var bool|array |
||
49 | */ |
||
50 | private $settings = false; |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | 1 | public function register() |
|
60 | |||
61 | /** |
||
62 | * Perform post-registration booting of services. |
||
63 | * |
||
64 | * @return void |
||
65 | */ |
||
66 | 1 | public function boot() |
|
70 | |||
71 | /** |
||
72 | * Merge default config and config from application `config` folder. |
||
73 | */ |
||
74 | 1 | protected function mergeConfigs() |
|
82 | |||
83 | /** |
||
84 | * @return void |
||
85 | */ |
||
86 | 1 | protected function registerPublishConfig() |
|
93 | |||
94 | /** |
||
95 | * @return void |
||
96 | */ |
||
97 | 2 | protected function configureCorsAnalyzer() |
|
102 | |||
103 | /** |
||
104 | * @return Closure |
||
105 | */ |
||
106 | 3 | protected function getCreateAnalysisStrategyClosure() |
|
115 | |||
116 | /** |
||
117 | * @return Closure |
||
118 | */ |
||
119 | protected function getCreateAnalyzerClosure() |
||
132 | |||
133 | /** |
||
134 | * @return string |
||
135 | */ |
||
136 | 2 | protected function getConfigPath() |
|
143 | |||
144 | /** |
||
145 | * @param ApplicationInterface $app |
||
146 | * |
||
147 | * @return null|LoggerInterface |
||
148 | */ |
||
149 | 1 | protected function getLoggerIfEnabled($app) |
|
164 | |||
165 | /** |
||
166 | * @return array |
||
167 | */ |
||
168 | 2 | protected function getSettings() |
|
178 | |||
179 | /** |
||
180 | * @return Repository |
||
181 | */ |
||
182 | 3 | protected function getConfigRepository() |
|
189 | |||
190 | /** |
||
191 | * @return array |
||
192 | */ |
||
193 | 1 | protected function getBaseConfig() |
|
201 | } |
||
202 |