src/AssetConfig.php
protected function _addConstants($constants)
    {
        foreach ($constants as $key => $value) {
            if (is_resource($value) === false) {
                if (is_array($value) || strpos($value, DIRECTORY_SEPARATOR) === false) {
                    continue;
                }
                if ($value !== DIRECTORY_SEPARATOR && !@file_exists($value)) {
                    continue;
                }
                $this->constantMap[$key] = rtrim($value, DIRECTORY_SEPARATOR);
            }
        }
        ksort($this->constantMap);
    }
protected function _addConstants($constants)
    {
        foreach ($constants as $key => $value) {
            if (is_resource($value) === false) {
                if (is_array($value) || strpos($value, DIRECTORY_SEPARATOR) === false) {
                    continue;
                }
                if ($value !== DIRECTORY_SEPARATOR && !@file_exists($value)) {
                    continue;
                }
                $this->constantMap[$key] = rtrim($value, DIRECTORY_SEPARATOR);
            }
        }
        ksort($this->constantMap);
    }
protected function _addConstants ( $ constants ) { foreach ( $ constants as $ key => $ value ) { if ( is_resource ( $ value ) === false ) { if ( is_array ( $ value ) || strpos ( $ value , DIRECTORY_SEPARATOR ) === false ) { continue ; } if ( $ value !== DIRECTORY_SEPARATOR && ! @ file_exists ( $ value ) ) { continue ; } $ this -> constantMap [ $ key ] = rtrim ( $ value , DIRECTORY_SEPARATOR ) ; } } ksort ( $ this -> constantMap ) ; }
Add path based constants to the mapped constants.

@param array $constants The constants to map
@return void
Add path based constants to the mapped constants .