示例#1
0
 /**
  * Get file types where mentioned validator
  *
  * @param AppConfig $config
  * @return array
  */
 public function getValidatorFileTypes(AppConfig $config)
 {
     if ($this->fileTypes === null) {
         $nodes = $config->getNodesExpr(FileType::XPATH_FILE_TYPES);
         $this->fileTypes = array_keys($nodes);
     }
     return $this->fileTypes;
 }