bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

Add getToken() to ResourceControllerInterface #1047

Open guillerodriguez opened 1 year ago

guillerodriguez commented 1 year ago

Commit da200b3031c97602f756e52e1fcd87be53cf67d1 added a getToken method to ResourceController, which is convenient. However there is no clean way to access this from a Server instance since there is no getToken in the Server class, and Server::getResourceController returns a ResourceControllerInterface, which does not include getToken.

I suggest to add getToken to ResourceControllerInterface to fix this.