You should probably use HWIOAuthBundle (https://github.com/hwi/HWIOAuthBundle) instead, though. -- THIS PROJECT IS NO LONGER MAINTAINED by KnpLabs
Why do you think that https://github.com/api-platform/schema-generator is a good alternative to KnpOAuthBundle