title: Calling unknown method: yii\web\UrlManager::addRules()
body: <p>I have worked in Yii 1 and now trying to use Yii2. I have installed composer and then installed basic app. But now I am getting this error when I try to access the basic app. How can I solve this issue?</p>
  
  <p>Error is:</p>
  
  <blockquote>
    <p>Unknown Method – yii\base\UnknownMethodException</p>
    
    <p>Calling unknown method: yii\web\UrlManager::addRules()</p>
  </blockquote>