Maslosoft Mangan API
Class ConfigManager
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.
See also ConfigInit
signal.
Namespace: Maslosoft\Mangan
See:
Author: Piotr Maselkowski
Located at ConfigManager.php
See:
Maslosoft\Mangan\Signals\ConfigInit
Author: Piotr Maselkowski
Located at ConfigManager.php
Methods summary
public static
array
|
API documentation generated by ApiGen