/**
  * {@inheritdoc}
  */
 public function isSupported(FileSource $source)
 {
     $base = $source->getFileInfo()->getBasename();
     foreach ($this->extensions as $ext) {
         if (preg_match("'\\." . preg_quote($ext, "'") . "\$'i", $base)) {
             return true;
         }
     }
     return false;
 }
示例#2
0
 public static function getArgList()
 {
     return array_merge(FileSource::getArgList(), DBSource::getArgList(), SSHSource::getArgList());
 }