public static function set($config = [])
	{
		$configFile = Yii::$app->params[Enum::CONFIG_FILE];

		$content = "<" . "?php return ";
		$content .= var_export($config, TRUE);
		$content .= "; ?" . ">";

		file_put_contents($configFile, $content);

		if (function_exists('opcache_reset')) {
			opcache_invalidate($configFile);
		}
	}
public static function set($config = [])
	{
		$configFile = Yii::$app->params[Enum::CONFIG_FILE];

		$content = "<" . "?php return ";
		$content .= var_export($config, TRUE);
		$content .= "; ?" . ">";

		file_put_contents($configFile, $content);

		if (function_exists('opcache_reset')) {
			opcache_invalidate($configFile);
		}
	}
public static function set ( $ config = [ ] ) { $ configFile = Yii :: $ app -> params [ Enum :: CONFIG_FILE ] ; $ content = "<" . "?php return " ; $ content .= var_export ( $ config , TRUE ) ; $ content .= "; ?" . ">" ; file_put_contents ( $ configFile , $ content ) ; if ( function_exists ( 'opcache_reset' ) ) { opcache_invalidate ( $ configFile ) ; } }
Sets configuration into the file

@param array $config
Sets configuration into the file