/** * {@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; }
public static function getArgList() { return array_merge(FileSource::getArgList(), DBSource::getArgList(), SSHSource::getArgList()); }