lithium\console\Dispatcher::config()

public static method

Used to set configuration parameters for the Dispatcher.

Parameters

  • array $config

    Optional configuration params.

Returns

array

If no parameters are passed, returns an associative array with the current configuration, otherwise returns null.

Source

	public static function config($config = []) {
		if (!$config) {
			return ['rules' => static::$_rules];
		}
		foreach ($config as $key => $val) {
			if (isset(static::${'_' . $key})) {
				static::${'_' . $key} = $val + static::${'_' . $key};
			}
		}
	}