MiniAsset\AssetConfig::_addConstants PHP Метод

_addConstants() защищенный Метод

Add path based constants to the mapped constants.
protected _addConstants ( array $constants ) : void
$constants array The constants to map
Результат void
    protected function _addConstants($constants)
    {
        foreach ($constants as $key => $value) {
            if (strpos($value, DIRECTORY_SEPARATOR) === false) {
                continue;
            }
            if ($value !== DIRECTORY_SEPARATOR && !@file_exists($value)) {
                continue;
            }
            $this->constantMap[$key] = rtrim($value, DIRECTORY_SEPARATOR);
        }
        ksort($this->constantMap);
    }