Skip to content
Snippets Groups Projects

[RTKO] default volatile on setupOpac

Merged Sebastien ANDRE requested to merge fix_default_volatile_on_setup into master
All threads resolved!
Viewing commit d4ae46d2
Show latest version
2 files
+ 2
111
Preferences
Compare changes
Files
2
@@ -24,7 +24,6 @@ class Class_DigitalResource
{
use Trait_StormFileSystem;
protected $_config_provider = null;
protected static ?Storm_Collection $_plugins = null;
protected static $_instance;
protected ?array $_batches = null;
@@ -87,20 +86,6 @@ class Class_DigitalResource
}
public function getConfigProvider()
{
return $this->_config_provider ?? (new Class_DigitalResource_ConfigProvider);
}
public function setConfigProvider($provider): self
{
$this->_config_provider = $provider;
return $this;
}
public function getDocType($plugin)
{
return $plugin;
@@ -433,7 +418,8 @@ class Class_DigitalResource
{
$class_name = $plugin . '_Config';
return $this->getConfigProvider()->getConfig($this, $class_name, $plugin);
return (new Class_DigitalResource_ConfigProvider)
->getConfig($this, $class_name, $plugin);
}