@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace AdvancedLearning\Oauth2Server\Models; |
4 | 4 | |
5 | 5 | use SilverStripe\ORM\DataObject; |
6 | -use SilverStripe\Security\Member; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * Class AccessTokenEntity |
@@ -37,7 +37,6 @@ |
||
37 | 37 | /** |
38 | 38 | * Build error control chain for an application |
39 | 39 | * |
40 | - * @param Application $application The SilverStripe Application. |
|
41 | 40 | */ |
42 | 41 | public function __construct() |
43 | 42 | { |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use SilverStripe\Core\Application; |
11 | 11 | use SilverStripe\Core\Injector\Injector; |
12 | 12 | use SilverStripe\ORM\Connect\DatabaseException; |
13 | -use SilverStripe\ORM\DB; |
|
14 | 13 | use SilverStripe\Security\Member; |
15 | 14 | use SilverStripe\Security\Security; |
16 | 15 |
@@ -67,6 +67,9 @@ |
||
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | + /** |
|
71 | + * @param string $message |
|
72 | + */ |
|
70 | 73 | protected function getErrorResponse($message, $responseCode = 500) |
71 | 74 | { |
72 | 75 | $response = (new OAuthServerException($message, 100, 'server_error', $responseCode)) |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Robbie\Psr7\HttpRequestAdapter; |
11 | 11 | use Robbie\Psr7\HttpResponseAdapter; |
12 | 12 | use SilverStripe\Control\Controller; |
13 | -use SilverStripe\Control\HTTP; |
|
14 | 13 | use SilverStripe\Control\HTTPResponse; |
15 | 14 | |
16 | 15 | class AuthoriseController extends Controller |