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 = array()) {
		if (!$config) {
			return array('rules' => static::$_rules);
		}
		foreach ($config as $key => $val) {
			if (isset(static::${'_' . $key})) {
				static::${'_' . $key} = $val + static::${'_' . $key};
			}
		}
	}