Fixed CacheResource implementation and tests

This commit is contained in:
Simon Wisselink
2023-01-03 17:10:02 +01:00
parent 32df4c6467
commit 3fccb54093
19 changed files with 215 additions and 213 deletions

View File

@@ -181,6 +181,17 @@ class BCPluginsAdapter extends Base {
}
}
$type = 'cacheresource';
foreach (glob($path . $type . '.?*.php') as $filename) {
$pluginName = $this->getPluginNameFromFilename($filename);
if ($pluginName !== null) {
require_once $filename;
if (class_exists($className = 'smarty_' . $type . '_' . $pluginName)) {
$this->smarty->registerCacheResource($pluginName, new $className());
}
}
}
}
/**