. * */ namespace Friendica\Core\PConfig\Factory; use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Hooks\Capabilities\ICanCreateInstances; use Friendica\Core\PConfig\Capability\IManagePersonalConfigValues; class PConfig { public function create(ICanCreateInstances $instanceCreator, IManageConfigValues $config): IManagePersonalConfigValues { $strategy = $config->get('system', 'config_adapter'); /** @var IManagePersonalConfigValues */ return $instanceCreator->create(IManagePersonalConfigValues::class, $strategy); } }