Sorry, my bad. I want to prevent something like this [in YiiBooster](https://github.com/clevertech/YiiBooster/blob/master/src/components/packages.php#L23). They're using the asset manager in the package definition. It's pretty much the same like the "no-model-in-migrations" rule for assets.