Skip to content

Commit

Permalink
Merge pull request #1460 from xerc/master
Browse files Browse the repository at this point in the history
 use Laminas\Diactoros\Stream
  • Loading branch information
Sephster authored Nov 25, 2024
2 parents d511107 + 6c8fcb0 commit 7b9ec37
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/public/auth_code.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

declare(strict_types=1);

include __DIR__ . '/../vendor/autoload.php';

use Laminas\Diactoros\Stream;
use League\OAuth2\Server\AuthorizationServer;
use League\OAuth2\Server\Exception\OAuthServerException;
Expand All @@ -24,8 +26,6 @@
use Psr\Http\Message\ServerRequestInterface;
use Slim\App;

include __DIR__ . '/../vendor/autoload.php';

$app = new App([
'settings' => [
'displayErrorDetails' => true,
Expand Down
2 changes: 1 addition & 1 deletion examples/public/device_code.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

include __DIR__ . '/../vendor/autoload.php';

use Laminas\Diactoros\Stream;
use League\OAuth2\Server\AuthorizationServer;
use League\OAuth2\Server\Exception\OAuthServerException;
use League\OAuth2\Server\Grant\DeviceCodeGrant;
Expand All @@ -23,7 +24,6 @@
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Slim\App;
use Zend\Diactoros\Stream;

$app = new App([
'settings' => [
Expand Down
4 changes: 2 additions & 2 deletions examples/public/implicit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

declare(strict_types=1);

include __DIR__ . '/../vendor/autoload.php';

use Laminas\Diactoros\Stream;
use League\OAuth2\Server\AuthorizationServer;
use League\OAuth2\Server\Exception\OAuthServerException;
Expand All @@ -22,8 +24,6 @@
use Psr\Http\Message\ServerRequestInterface;
use Slim\App;

include __DIR__ . '/../vendor/autoload.php';

$app = new App([
'settings' => [
'displayErrorDetails' => true,
Expand Down
4 changes: 2 additions & 2 deletions examples/public/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

declare(strict_types=1);

include __DIR__ . '/../vendor/autoload.php';

use League\OAuth2\Server\AuthorizationServer;
use League\OAuth2\Server\Exception\OAuthServerException;
use League\OAuth2\Server\Grant\PasswordGrant;
Expand All @@ -14,8 +16,6 @@
use Psr\Http\Message\ServerRequestInterface;
use Slim\App;

include __DIR__ . '/../vendor/autoload.php';

$app = new App([
// Add the authorization server to the DI container
AuthorizationServer::class => function () {
Expand Down
4 changes: 2 additions & 2 deletions examples/public/refresh_token.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

declare(strict_types=1);

include __DIR__ . '/../vendor/autoload.php';

use League\OAuth2\Server\AuthorizationServer;
use League\OAuth2\Server\Exception\OAuthServerException;
use League\OAuth2\Server\Grant\RefreshTokenGrant;
Expand All @@ -21,8 +23,6 @@
use Psr\Http\Message\ServerRequestInterface;
use Slim\App;

include __DIR__ . '/../vendor/autoload.php';

$app = new App([
'settings' => [
'displayErrorDetails' => true,
Expand Down

0 comments on commit 7b9ec37

Please sign in to comment.