Kreyu/data-table-bundle

Default persistence configuration is not applied

Kreyu opened this issue · 0 comments

Kreyu commented

The default persistence configuration (adapters and subject providers) are not applied in the following code:

private function getDefaultPersistenceAdapter(string $context): ?string
{
if (class_exists(CacheInterface::class)) {
return "kreyu_data_table.$context.persistence.adapter.cache";
}
return null;
}
private function getDefaultPersistenceSubjectProvider(): ?string
{
if (class_exists(TokenStorageInterface::class)) {
return 'kreyu_data_table.persistence.subject_provider.token_storage';
}
return null;
}

The class_exists functions return false.