Fixes #4501: Renamed the constant `YII_PATH` to `YII2_PATH`