title: Exception 'yii\base\InvalidConfigException' with message 'The configuration for the "user" component must contain a "class" element.'
body: <p>hello I got errors by this following errors when I run a command on composer <code>Yii migrate --migrationPath=@yii/rbac/migrations like this</code></p>
  
  <p>in C:\xampp\htdocs\advanced\vendor\yiisoft\yii2\di\ServiceLocator.php:204
  Stack trace:</p>
  
  <pre><code>#0 C:\xampp\htdocs\advanced\vendor\yiisoft\yii2\di\ServiceLocator.php(260): yii\di\ServiceLocator-&gt;set('user', Array)
  #1 C:\xampp\htdocs\advanced\vendor\yiisoft\yii2\base\Component.php(172): yii\di\ServiceLocator-&gt;setComponents(Array)
  #2 C:\xampp\htdocs\advanced\vendor\yiisoft\yii2\BaseYii.php(529): yii\base\Component-&gt;__set('components', Array)
  #3 C:\xampp\htdocs\advanced\vendor\yiisoft\yii2\base\Object.php(105): yii\BaseYii::configure(Object(yii\console\Application), Array)
  #4 C:\xampp\htdocs\advanced\vendor\yiisoft\yii2\base\Application.php(205): yii\base\Object-&gt;__construct(Array)
  #5 C:\xampp\htdocs\advanced\vendor\yiisoft\yii2\console\Application.php(89): yii\base\Application-&gt;__construct(Array)
  #6 C:\xampp\htdocs\advanced\yii(26): yii\console\Application-&gt;__construct(Array)
  #7 {main}
  
  heres my `config\main.php
  
  'vendorPath' =&gt; dirname(dirname(__DIR__)) . '/vendor',
      'modules'    =&gt; [
           'admin'     =&gt; [
                  'class' =&gt; 'mdm\admin\Module',
                          ],
                      ],
      'components' =&gt; [
      'authManager' =&gt; [
          'class' =&gt; 'yii\rbac\DbManager', // or use 'yii\rbac\PhpManager'
      ],
      'user' =&gt; [
          'identityClass' =&gt; 'mdm\admin\models\User',
          'loginUrl' =&gt; ['admin/user/login'],
      ]
  ]
  ];
  `
  </code></pre>
  
  <p>Can anyone help me to solve this problem?</p>