Maslosoft Mangan API
Config Manager can be used to customize configuration of mangan without copying whole configuration file. This allows to merge user defined parts with original configuration. Proper configuration of sanitizers, decorators, filters is crucial for proper mangan operation.
Example of recommended usage:
$config = array_replace_recursive(ConfigManager::getDefault(), [ 'filters' => [ RawArray::class => [ MyCustomFilter::class, ], ], 'sanitizersMap' => [ RawArray::class => [ StringSanitizer::class => HtmlSanitizer::class ] ] ]);
Above example snippet will add MyCustomFilter class to RawArray transformer and remap one sanitizer also for RawArray, while keeping all other configuration as it should be.
Author: Piotr Maselkowski
Located at ConfigManager.php