<commit_before><?php

$groups = config('ssoclientconfig');

foreach ($groups as $client) {
    Route::group(['domain' => array_get($client, 'domain')], function () use ($client) {
        Route::get('/sso', [
            'config_name' => array_get($client, 'config_name'),
            'uses'        => 'SsoController@index',
            'middleware'  => Sso\Http\Middleware\SsoMiddleware::class,
            'namespace '  => 'Sso\Http\Controllers'
        ]);
    });
}<commit_msg>路由传递 config_key 供 Controller 获取配置<commit_after><?php

$groups = config('ssoclientconfig');

foreach ($groups as $configKey => $client) {
    Route::group(['domain' => array_get($client, 'domain')], function () use ($configKey) {
        Route::get('/sso', [
            'config_key' => $configKey,
            'uses'       => 'SsoController@index',
            'middleware' => Sso\Http\Middleware\SsoMiddleware::class,
            'namespace ' => 'Sso\Http\Controllers'
        ]);
    });
}
{'fraction_non_alphanumeric': 0.18518518518518517, 'fraction_numerical': 0.0, 'mean_word_length': 2.8458498023715415, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7515656', 'n_tokens_mistral': 302, 'n_tokens_neox': 310, 'n_words': 50}