Import namespace

This commit is contained in:
Alex Bilbie 2016-02-12 14:17:49 +00:00
parent 0115c41eea
commit f6cc8bbb42

View File

@ -1,6 +1,7 @@
<?php <?php
use League\OAuth2\Server\Exception\OAuthServerException; use League\OAuth2\Server\Exception\OAuthServerException;
use League\OAuth2\Server\Grant\AuthCodeGrant;
use League\OAuth2\Server\Server; use League\OAuth2\Server\Server;
use OAuth2ServerExamples\Repositories\AccessTokenRepository; use OAuth2ServerExamples\Repositories\AccessTokenRepository;
@ -42,7 +43,7 @@ $app = new App([
// Enable the password grant on the server with a token TTL of 1 hour // Enable the password grant on the server with a token TTL of 1 hour
$server->enableGrantType( $server->enableGrantType(
new \League\OAuth2\Server\Grant\AuthCodeGrant( new AuthCodeGrant(
$authCodeRepository, $authCodeRepository,
$refreshTokenRepository, $refreshTokenRepository,
$userRepository, $userRepository,