After updating composer's dependencies today (using the composer update command), my Yii2 application became broken - it throws an Unknown method - yii \ base \ UnknownMethodException: calling an unknown method: yii \ web \ UrlManager :: addRules ()
After checking the vendor / yiisoft / yii2 / web / UrlManager.php file, I found that there was no addRule method. And the whole UrlManager class is different from the class in the repository.
My composer .json:
"minimum-stability": "dev", "require": { "php": ">=5.4.0", "yiisoft/yii2": "*", "yiisoft/yii2-bootstrap": "*", "yiisoft/yii2-swiftmailer": "*", "yiisoft/yii2-gii": "2.0.0-beta", "claudejanz/yii2-mygii": "*", "kartik-v/yii2-grid": "dev-master", "kartik-v/yii2-builder": "dev-master", "2amigos/yii2-switch-widget": "*", "yiisoft/yii2-jui": "*", "DsXack/yii2-underscore": "*", "2amigos/yii2-editable-widget": "*", "warrence/yii2-kartikgii": "*" }, "require-dev": { "yiisoft/yii2-codeception": "*", "yiisoft/yii2-debug": "*" },
source share