Yii1 compatibility

removed YII_PATH constant from the framework to be compatible with Yii 1.1 and more flexible in general.

fixes #4501
But you still use `YII2_PATH` in the class map. And under what circumstances will you need to adjust this value?