Checks if all necessary parameters for a driver configuration
are set and throws a fatal error with a detailed explanation
how to fix this, if something is missing.
public static assertDriverConfig ( array $params, string $driver, array $fields, string $name = null, string $file = 'conf.php', string $variable = '$conf' ) | ||
$params | array | The configuration array with all parameters. |
$driver | string | The key name (in the configuration array) of the driver. |
$fields | array | An array with mandatory parameter names for this driver. |
$name | string | The clear text name of the driver. If not specified, the application name will be used. |
$file | string | The configuration file that should contain these settings. |
$variable | string | The name of the configuration variable. |