public static function rewriteConfiguration()
	{
		// Get Current Configuration
		$config = Configuration::get();

		// Add Application Name to Configuration
		$config['name'] = Yii::$app->config->get(Enum::APP_NAME);

		// Add Caching
		$cacheClass = Yii::$app->config->get(Enum::CACHE_CLASS);
		if (!$cacheClass) {
			$cacheClass = FileCache::className();
		}
		$config['components']['cache'] = [
			'class' => $cacheClass
		];

		// Add Auth Clients
		$config['components']['authClientCollection']['class'] = 'yii\\authclient\\Collection';

		Configuration::set($config);
	}
public static function rewriteConfiguration()
	{
		// Get Current Configuration
		$config = Configuration::get();

		// Add Application Name to Configuration
		$config['name'] = Yii::$app->config->get(Enum::APP_NAME);

		// Add Caching
		$cacheClass = Yii::$app->config->get(Enum::CACHE_CLASS);
		if (!$cacheClass) {
			$cacheClass = FileCache::className();
		}
		$config['components']['cache'] = [
			'class' => $cacheClass
		];

		// Add Auth Clients
		$config['components']['authClientCollection']['class'] = 'yii\\authclient\\Collection';

		Configuration::set($config);
	}
public static function rewriteConfiguration ( ) { // Get Current Configuration $ config = Configuration :: get ( ) ; // Add Application Name to Configuration $ config [ 'name' ] = Yii :: $ app -> config -> get ( Enum :: APP_NAME ) ; // Add Caching $ cacheClass = Yii :: $ app -> config -> get ( Enum :: CACHE_CLASS ) ; if ( ! $ cacheClass ) { $ cacheClass = FileCache :: className ( ) ; } $ config [ 'components' ] [ 'cache' ] = [ 'class' => $ cacheClass ] ; // Add Auth Clients $ config [ 'components' ] [ 'authClientCollection' ] [ 'class' ] = 'yii\\authclient\\Collection' ; Configuration :: set ( $ config ) ; }
Rewrites the configuration file
Rewrites the configuration file