protected function _setFile($path) {
        $this->_name .= $path;
        $this->_data['' . $path . ''] = file_get_contents($path);

        if ($this->_type == 'css') {
            $this->_currentPath = dirname($path) . '/';
            $this->_data['' . $path . ''] = preg_replace_callback('`url\((.*)\)`isU', ['Gcs\Framework\Core\Asset\Asset', '_parseRelativePathCssUrl'], $this->_data['' . $path . '']);
            $this->_data['' . $path . ''] = preg_replace_callback('`src=\'(.*)\'`isU', ['Gcs\Framework\Core\Asset\Asset', '_parseRelativePathCssSrc'], $this->_data['' . $path . '']);
        }
    }
protected function _setFile($path) {
        $this->_name .= $path;
        $this->_data['' . $path . ''] = file_get_contents($path);

        if ($this->_type == 'css') {
            $this->_currentPath = dirname($path) . '/';
            $this->_data['' . $path . ''] = preg_replace_callback('`url\((.*)\)`isU', ['Gcs\Framework\Core\Asset\Asset', '_parseRelativePathCssUrl'], $this->_data['' . $path . '']);
            $this->_data['' . $path . ''] = preg_replace_callback('`src=\'(.*)\'`isU', ['Gcs\Framework\Core\Asset\Asset', '_parseRelativePathCssSrc'], $this->_data['' . $path . '']);
        }
    }
protected function _setFile ( $ path ) { $ this -> _name .= $ path ; $ this -> _data [ '' . $ path . '' ] = file_get_contents ( $ path ) ; if ( $ this -> _type == 'css' ) { $ this -> _currentPath = dirname ( $ path ) . '/' ; $ this -> _data [ '' . $ path . '' ] = preg_replace_callback ( '`url\((.*)\)`isU' , [ 'Gcs\Framework\Core\Asset\Asset' , '_parseRelativePathCssUrl' ] , $ this -> _data [ '' . $ path . '' ] ) ; $ this -> _data [ '' . $ path . '' ] = preg_replace_callback ( '`src=\'(.*)\'`isU' , [ 'Gcs\Framework\Core\Asset\Asset' , '_parseRelativePathCssSrc' ] , $ this -> _data [ '' . $ path . '' ] ) ; } }
configure one file
@access public
@param $path string
@return void
@since 3.0
@package Gcs\Framework\Core\Asset
configure one file