Adding missing variable

ImplicitGrant's constructor requires \DateInterval object
This commit is contained in:
Stanimir Stoyanov 2016-05-09 12:09:06 +03:00
parent 4b38cc8191
commit 4da47684c6

View File

@ -60,8 +60,9 @@ $server = new \League\OAuth2\Server\AuthorizationServer(
); );
// Enable the implicit grant on the server // Enable the implicit grant on the server
$server->enableGrantType( $server->enableGrantType(
new ImplicitGrant(), new ImplicitGrant(new \DateInterval('PT1H')),
new \DateInterval('PT1H') // access tokens will expire after 1 hour new \DateInterval('PT1H') // access tokens will expire after 1 hour
); );
{% endhighlight %} {% endhighlight %}