1 | <?php |
||
9 | class ConfigRetriever implements ConfigRetrieverInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $providerName; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $providerIdentifier; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $servicesArray; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $additionalConfigKeys; |
||
30 | |||
31 | /** |
||
32 | * @param string $providerName |
||
33 | 2 | * @param array $additionalConfigKeys |
|
34 | * |
||
35 | 2 | * @throws \SocialiteProviders\Manager\Exception\MissingConfigException |
|
36 | * |
||
37 | 2 | * @return \SocialiteProviders\Manager\Contracts\ConfigInterface |
|
38 | 2 | */ |
|
39 | 1 | public function fromServices($providerName, array $additionalConfigKeys = []) |
|
55 | 2 | ||
56 | 2 | /** |
|
57 | * @param array $configKeys |
||
58 | 1 | * @param \Closure $keyRetrievalClosure |
|
59 | 1 | * |
|
60 | 1 | * @return array |
|
61 | 1 | */ |
|
62 | 1 | protected function getConfigItems(array $configKeys, \Closure $keyRetrievalClosure) |
|
70 | |||
71 | /** |
||
72 | * @param array $keys |
||
73 | 2 | * @param \Closure $keyRetrievalClosure |
|
74 | * |
||
75 | 2 | * @return array |
|
76 | */ |
||
77 | protected function retrieveItemsFromConfig(array $keys, \Closure $keyRetrievalClosure) |
||
87 | |||
88 | 2 | /** |
|
89 | * @param string $key |
||
90 | 2 | * |
|
91 | * @throws \SocialiteProviders\Manager\Exception\MissingConfigException |
||
92 | 2 | * |
|
93 | 2 | * @return string |
|
94 | 2 | */ |
|
95 | protected function getFromServices($key) |
||
111 | 1 | ||
112 | /** |
||
113 | * @param string $providerName |
||
114 | * |
||
115 | * @throws \SocialiteProviders\Manager\Exception\MissingConfigException |
||
116 | * |
||
117 | * @return array |
||
118 | */ |
||
119 | protected function getConfigFromServicesArray($providerName) |
||
139 | |||
140 | 2 | /** |
|
141 | 2 | * @param string $key |
|
142 | * |
||
143 | 2 | * @return bool |
|
144 | 1 | */ |
|
145 | protected function isAdditionalConfig($key) |
||
149 | } |
||
150 |