original_string: public function validateConfig(array $rules, array $configData)
      {
          $validator = $this->createNew(Validator::class);
          
          if ($validator->isValid($rules, $configData) == false) {
              throw new DataValidationException('The config is invalid: ' . print_r($validator->getErrors(), 1));
          }
      }
code: public function validateConfig(array $rules, array $configData)
      {
          $validator = $this->createNew(Validator::class);
          
          if ($validator->isValid($rules, $configData) == false) {
              throw new DataValidationException('The config is invalid: ' . print_r($validator->getErrors(), 1));
          }
      }
code_tokens: public function validateConfig ( array $ rules , array $ configData ) { $ validator = $ this -> createNew ( Validator :: class ) ; if ( $ validator -> isValid ( $ rules , $ configData ) == false ) { throw new DataValidationException ( 'The config is invalid: ' . print_r ( $ validator -> getErrors ( ) , 1 ) ) ; } }
docstring: Validate some config data
  
  @param array $rules      The config rules
  @param array $configData The config data
  
  @throws Mooti\Framework\Exception\DataValidationException
docstring_tokens: Validate some config data