Repository is now instanciated on the fly
No more repository instantiated in constructor of ClientManager and TokenManager.
This avoids a database connection to be established for every request.
Fixes issue https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/issues/422
Tests are failing tho
Right, there was a test conflicting with the very purpose of this pull request. I removed this test. There are still some failing tests, but I guess these out of memory errors are unrelated.
The unit tests have improved greatly the last couple of weeks.
Could you rebase on top of master?
Ok @dinamic , I made the rebase and tests are fine now.
Can you handle authcodemanagers too?
Yes @dkarlovi, good point. AuthCodeManagers are handled as well now.