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 | * @return void |
||
73 | */ |
||
74 | 1 | protected function registerPublishConfig() |
|
81 | |||
82 | /** |
||
83 | * @return void |
||
84 | */ |
||
85 | 2 | protected function configureCorsAnalyzer() |
|
90 | |||
91 | /** |
||
92 | * @return Closure |
||
93 | */ |
||
94 | 3 | protected function getCreateAnalysisStrategyClosure() |
|
103 | |||
104 | /** |
||
105 | * @return Closure |
||
106 | */ |
||
107 | protected function getCreateAnalyzerClosure() |
||
120 | |||
121 | /** |
||
122 | * @return string |
||
123 | */ |
||
124 | 2 | private function getConfigPath() |
|
131 | |||
132 | /** |
||
133 | * @param ApplicationInterface $app |
||
134 | * |
||
135 | * @return null|LoggerInterface |
||
136 | */ |
||
137 | 1 | private function getLoggerIfEnabled($app) |
|
152 | |||
153 | /** |
||
154 | * @param ApplicationInterface $app |
||
155 | * |
||
156 | * @return array |
||
157 | */ |
||
158 | 2 | private function getSettings($app) |
|
170 | } |
||
171 |