protected function parseTags(array $bustersOfThisType, $type)
    {

        // add to array and implode to string
        $busterStrings = array();
        foreach ($bustersOfThisType as $fileName => $hash) {

            // get config
            $template     = $this->config[$type.'Template'];
            $rootPath     = $this->config['rootPath'];
            $pathInfo     = pathInfo($fileName);
            $fileBasePath = $pathInfo['dirname'];
            $fileBaseName = $pathInfo['filename'];

            // replace stuff
            $template        = str_replace('{{ROOT_PATH}}', $rootPath, $template);
            $template        = str_replace('{{HASH}}', $hash, $template);
            $template        = str_replace('{{FILE_PATH}}', $fileBasePath, $template);
            $template        = str_replace('{{FILE_NAME}}', $fileBaseName, $template);
            $busterStrings[] = $template;
        }

        return $busterStrings;
    }
protected function parseTags(array $bustersOfThisType, $type)
    {

        // add to array and implode to string
        $busterStrings = array();
        foreach ($bustersOfThisType as $fileName => $hash) {

            // get config
            $template     = $this->config[$type.'Template'];
            $rootPath     = $this->config['rootPath'];
            $pathInfo     = pathInfo($fileName);
            $fileBasePath = $pathInfo['dirname'];
            $fileBaseName = $pathInfo['filename'];

            // replace stuff
            $template        = str_replace('{{ROOT_PATH}}', $rootPath, $template);
            $template        = str_replace('{{HASH}}', $hash, $template);
            $template        = str_replace('{{FILE_PATH}}', $fileBasePath, $template);
            $template        = str_replace('{{FILE_NAME}}', $fileBaseName, $template);
            $busterStrings[] = $template;
        }

        return $busterStrings;
    }
protected function parseTags ( array $ bustersOfThisType , $ type ) { // add to array and implode to string $ busterStrings = array ( ) ; foreach ( $ bustersOfThisType as $ fileName => $ hash ) { // get config $ template = $ this -> config [ $ type . 'Template' ] ; $ rootPath = $ this -> config [ 'rootPath' ] ; $ pathInfo = pathInfo ( $ fileName ) ; $ fileBasePath = $ pathInfo [ 'dirname' ] ; $ fileBaseName = $ pathInfo [ 'filename' ] ; // replace stuff $ template = str_replace ( '{{ROOT_PATH}}' , $ rootPath , $ template ) ; $ template = str_replace ( '{{HASH}}' , $ hash , $ template ) ; $ template = str_replace ( '{{FILE_PATH}}' , $ fileBasePath , $ template ) ; $ template = str_replace ( '{{FILE_NAME}}' , $ fileBaseName , $ template ) ; $ busterStrings [ ] = $ template ; } return $ busterStrings ; }
Replace the tags in the template with the actual values

@param  array  $bustersOfThisType
@param  string $type              css or js
@return array
Replace the tags in the template with the actual values