i will have in advanced app, `api` directory, like `frontend/backend/etc` in it i will set User to be custom one - `yii\rest\User`, so i dont like puting code that actually is for api into common `web`.