- use `ObjectFactory::createObjectByConfiguredName()` for getting any class'
name from configuration
// CFG: META-DESCRIPTION
$cfg->setConfigEntry('meta_description', 'A description for your website');
+// CFG: NULL-COMPRESSOR-CLASS
+$cfg->setConfigEntry('null_compressor_class', 'Org\Mxchange\CoreFramework\Compressor\Null\NullCompressor');
+
// CFG: CACHE-CLASS
$cfg->setConfigEntry('cache_class', 'Org\Mxchange\CoreFramework\Cache\Memory\MemoryCache');
if (!$compressorInstance->isCompressorSet()) {
// Set the null compressor handler. This should not be configureable!
// @TODO Is there a configurable fall-back compressor needed, or is NullCompressor okay?
- $compressorInstance->setCompressor(ObjectFactory::createObjectByName(Org\Mxchange\CoreFramework\Compressor\Null\NullCompressor::class));
+ $compressorInstance->setCompressor(ObjectFactory::createObjectByConfiguredName('null_compressor_class'));
}
// Return the compressor instance