each(function ($file) { Configure::load($file); }); UsersUrl::setupConfigUrls(); $locator = TableRegistry::getTableLocator(); foreach (['Users', 'CakeDC/Users.Users'] as $modelKey) { if (!$locator->exists($modelKey)) { $locator->setConfig($modelKey, ['className' => Configure::read('Users.table')]); } } $oldConfigs = [ 'Users.auth', 'Users.Social.authenticator', 'Users.GoogleAuthenticator', 'GoogleAuthenticator', 'Auth.authenticate', 'Auth.authorize', ]; foreach ($oldConfigs as $configKey) { if (Configure::check($configKey)) { trigger_error(__d('cake_d_c/users', "Users plugin configuration key \"{0}\" was removed, please check migration guide https://github.com/CakeDC/users/blob/master/Docs/Documentation/Migration/8.x-9.0.md", $configKey)); } }