Pimcore\Config::setFlag PHP Method

setFlag() public static method

public static setFlag ( $name, $value )
$name
$value
    public static function setFlag($name, $value)
    {
        $settings = self::getSystemConfig()->toArray();
        if (!isset($settings["flags"])) {
            $settings["flags"] = [];
        }
        $settings["flags"][$name] = $value;
        $configFile = \Pimcore\Config::locateConfigFile("system.php");
        File::putPhpFile($configFile, to_php_data_file_format($settings));
    }

Usage Example

Exemplo n.º 1
0
<?php

\Pimcore\Config::setFlag("useZendDate", true);