Skip to content

Commit

Permalink
Compability with doctrine/orm 3
Browse files Browse the repository at this point in the history
  • Loading branch information
muxx committed Oct 21, 2024
1 parent 9a8a51f commit 29986c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "OAuth Server Bundle",
"require": {
"php": ">=8.1",
"doctrine/orm": "^2.0",
"doctrine/orm": "^2.0 || ^3.0",
"symfony/config": "^5.4|^6.0|^7.0",
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
"symfony/event-dispatcher": "^5.4|^6.0|^7.0",
Expand Down
16 changes: 8 additions & 8 deletions tests/DependencyInjection/OAuthServerExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ public function testLoad(): void
$this->assertInstanceOf(ChainExtractor::class, $container->get(ChainExtractor::class));
$this->assertInstanceOf(MtRandTokenGenerator::class, $container->get(MtRandTokenGenerator::class));

$this->assertInstanceOf(AccessTokenStorage::class, $container->get(AccessTokenStorage::class));
$this->assertInstanceOf(RefreshTokenStorage::class, $container->get(RefreshTokenStorage::class));
$this->assertInstanceOf(AuthCodeStorage::class, $container->get(AuthCodeStorage::class));
$this->assertInstanceOf(ClientStorage::class, $container->get(ClientStorage::class));
$this->assertInstanceOf(AccessTokenStorageInterface::class, $container->get(AccessTokenStorage::class));
$this->assertInstanceOf(RefreshTokenStorageInterface::class, $container->get(RefreshTokenStorage::class));
$this->assertInstanceOf(AuthCodeStorageInterface::class, $container->get(AuthCodeStorage::class));
$this->assertInstanceOf(ClientStorageInterface::class, $container->get(ClientStorage::class));

$this->assertInstanceOf(AccessTokenStorage::class, $container->get(AccessTokenStorageInterface::class));
$this->assertInstanceOf(RefreshTokenStorage::class, $container->get(RefreshTokenStorageInterface::class));
$this->assertInstanceOf(AuthCodeStorage::class, $container->get(AuthCodeStorageInterface::class));
$this->assertInstanceOf(ClientStorage::class, $container->get(ClientStorageInterface::class));
$this->assertInstanceOf(AccessTokenStorageInterface::class, $container->get(AccessTokenStorageInterface::class));
$this->assertInstanceOf(RefreshTokenStorageInterface::class, $container->get(RefreshTokenStorageInterface::class));
$this->assertInstanceOf(AuthCodeStorageInterface::class, $container->get(AuthCodeStorageInterface::class));
$this->assertInstanceOf(ClientStorageInterface::class, $container->get(ClientStorageInterface::class));

$this->assertInstanceOf(AuthCodeGrantExtension::class, $container->get(AuthCodeGrantExtension::class));
$this->assertInstanceOf(ClientCredentialsGrantExtension::class, $container->get(ClientCredentialsGrantExtension::class));
Expand Down

0 comments on commit 29986c4

Please sign in to comment.