Symfony\Component\Finder\Finder::create PHP Method

create() public static method

Creates a new Finder.
public static create ( ) : Finder
return Finder A new Finder instance
    public static function create()
    {
        return new static();
    }

Usage Example

コード例 #1
0
 /**
  * Scan themes directory.
  */
 public function scan()
 {
     $files = $this->finder->create()->in($this->getBasePath())->name('theme.json');
     foreach ($files as $file) {
         $this->register($file);
     }
 }
All Usage Examples Of Symfony\Component\Finder\Finder::create