Back to WebAssetRegistry class

Method parseRegistryFiles

protected void
parseRegistryFiles
()
Parse registered files
Returns
  • void
Since
  • 4.0.0

Method parseRegistryFiles - Source code

/**
 * Parse registered files
 *
 * @return  void
 *
 * @since  4.0.0
 */
protected function parseRegistryFiles()
{
    if (!$this->dataFilesNew) {
        return;
    }
    foreach ($this->dataFilesNew as $path) {
        // Parse only if the file was not parsed already
        if (empty($this->dataFilesParsed[$path])) {
            $this->parseRegistryFile($path);
            // Mark the file as parsed
            $this->dataFilesParsed[$path] = $path;
        }
        // Remove the file from queue
        unset($this->dataFilesNew[$path]);
    }
}