com\setasign\Konquadrat\Config\Validator

ConfigValidator Class ConfigValidator

File: /Konquadrat/src/Config/Validator/ConfigValidator.php

The ConfigValidator checks the configuration for duplicate fields.

Class hierarchy

Summary

Properties

$memoize

private ConfigValidator::$memoize = array()

Methods

checkDuplicateFields()

checkImplements()

checkSyncableObjects()

Syncable objects has some rules that must be followed.

  • Reference-Fields must reference to a syncable object type
  • Callback and DynamicFieldContainer fields are not allowed.
Parameters
$config: \com\setasign\SetaFramework\Config\Config
 
Exceptions

Throws ValidationException

checkValidReferenceFields()

resolveAllFields()

protected ConfigValidator::resolveAllFields (
\com\setasign\SetaFramework\Config\Config $config,
string $type,
array &$ignoreImplements = array ( )
): array
Parameters
$config: \com\setasign\SetaFramework\Config\Config
 
$type: string
 
$ignoreImplements: array

We need to remember which types we already resolved

Exceptions

Throws ValidationException

resolveImplementChain()

protected ConfigValidator::resolveImplementChain (
array $actualChain,
array $allImplements,
string $type
): void
Parameters
$actualChain: array
 
$allImplements: array
 
$type: string
 
Exceptions

Throws ValidationException

resolveReferenceConditionFields()