Ejemplo n.º 1
0
 /**
  * Build iterator to find buckets in a file hierarchy
  * 
  * @param String $dirPath
  * 
  * @return ForgeUpgrade_BucketFilter
  */
 protected function getBucketFinderIterator($dirPath)
 {
     $iter = new RecursiveDirectoryIterator($dirPath);
     $iter = new RecursiveIteratorIterator($iter, RecursiveIteratorIterator::SELF_FIRST);
     $iter = new ForgeUpgrade_BucketFilter($iter);
     $iter->setIncludePaths($this->options['core']['include_path']);
     $iter->setExcludePaths($this->options['core']['exclude_path']);
     return $iter;
 }