Getting Calling unknown method: yii\web\UrlManager::addRules() after last composer update

Hello there.

Yesterday I ran ‘composer update’ in order to update yii2 to 2.0.3 version, everything went ok, but after that, I always get this exception

Unknown Method – yii\base\UnknownMethodException

Calling unknown method: yii\web\UrlManager::addRules()

I ran "php composer.phar global require “fxp/composer-asset-plugin:1.0.0”, then composer update, and it didn’t help. I still see this exception.

My composer.json:


	"name": "yiisoft/yii2-app-advanced",

	"description": "Yii 2 Advanced Application Template",

	"keywords": ["yii2", "framework", "advanced", "application template"],

	"type": "project",

	"license": "BSD-3-Clause",

	"support": {



	"minimum-stability": "dev",

	"require": {

		"php": ">=5.4.0",

		"yiisoft/yii2": "*",

		"yiisoft/yii2-bootstrap": "*",

		"yiisoft/yii2-swiftmailer": "*",


        "bower-asset/bootstrap": "3.2.*"


	"require-dev": {

		"yiisoft/yii2-codeception": "*",

		"yiisoft/yii2-debug": "*",

		"yiisoft/yii2-gii": "*",

        "yiisoft/yii2-faker": "*"


	"suggest": {

		"codeception/codeception": "Codeception, 1.8.*@dev is currently works well with Yii.",

		"codeception/specify": "BDD style code blocks for PHPUnit and Codeception",

		"codeception/verify": "BDD Assertions for PHPUnit and Codeception",

		"yiisoft/yii2-faker": "Fixtures generator for Yii2 based on Faker lib"


	"scripts": {

		"post-create-project-cmd": [




	"config": {

		"process-timeout": 1800


	"extra": {

        "asset-installer-paths": {

            "npm-asset-library": "vendor/npm",

            "bower-asset-library": "vendor/bower"


		"writable": [










Guys, any ideas? What should I check else? Where mistake can be esle, and where I can look for it?

Thanks in advance!

Hey guys, I’ve resolved this problem brute way :) : removed entire vendor folder, composer.lock and then ran composer install.

It worked.

solved my problem