DOMPDFModule\Service\DOMPDFFactory::applyCompatGlobals PHP Method

applyCompatGlobals() private method

Declares global constants supported by DOMPDF lib.
private applyCompatGlobals ( array $config )
$config array
    private function applyCompatGlobals(array $config)
    {
        foreach ($config as $key => $value) {
            if (!array_key_exists($key, static::$configCompatMapping)) {
                continue;
            }
            if (defined(static::$configCompatMapping[$key])) {
                continue;
            }
            define(static::$configCompatMapping[$key], $value);
        }
    }