Phulp\Source::getDistFiles PHP Метод

getDistFiles() публичный Метод

Gets the value of distFiles.
public getDistFiles ( ) : Collection | DistFile[]
Результат Collection | DistFile[] $distFiles
    public function getDistFiles()
    {
        return $this->distFiles;
    }

Usage Example

Пример #1
0
 /**
  * @inheritdoc
  */
 public function execute(Source $src)
 {
     foreach ($src->getDistFiles() as $key => $file) {
         if (preg_match('/\\.less$/', $file->getName()) || preg_match('/\\.less$/', $file->getDistpathname())) {
             $parser = new Less_Parser();
             $parser->parseFile($file->getFullpath() . DIRECTORY_SEPARATOR . $file->getName(), $this->options['uri']);
             $css = $parser->getCss();
             $file->setContent($css);
             $file->setDistpathname(preg_replace('/less$/', 'css', $file->getDistpathname()));
         }
     }
 }
All Usage Examples Of Phulp\Source::getDistFiles