1 | <?php |
||
26 | class LocalSettingProvider implements SettingProviderInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var SettingSchemaRegistryInterface |
||
30 | */ |
||
31 | private $schemaRegistry; |
||
32 | |||
33 | /** |
||
34 | * @param SettingSchemaRegistryInterface $schemaRegistry |
||
35 | */ |
||
36 | 4 | public function __construct(SettingSchemaRegistryInterface $schemaRegistry) |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 2 | public function findUserSettings(string $owner): Collection |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 1 | public function findGlobalSettings(): Collection |
|
68 | |||
69 | /** |
||
70 | * @param SettingSchema[] $settings |
||
71 | * @param string|null $owner |
||
72 | * |
||
73 | * @return SettingInterface[] |
||
74 | */ |
||
75 | 3 | private function populateSettings(array $settings, ?string $owner = null): array |
|
89 | } |
||
90 |