Update Generator.php

To comply with the docs RE namespace usage:
https://github.com/yiisoft/yii2/blob/master/docs/guide/extend-creating-extensions.md