Skip to content

Commit

Permalink
TASK: Add Objects.yaml for UserRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenmalling authored and daniellienert committed Mar 17, 2021
1 parent e49e9bf commit bb50ce7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/AuthorizationServerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use League\OAuth2\Server\Grant\ImplicitGrant;
use League\OAuth2\Server\Grant\PasswordGrant;
use League\OAuth2\Server\Grant\RefreshTokenGrant;
use League\OAuth2\Server\Repositories\UserRepositoryInterface;
use Neos\Flow\Annotations as Flow;
use League\OAuth2\Server\AuthorizationServer;
use Neos\Flow\Log\Utility\LogEnvironment;
Expand All @@ -22,7 +23,6 @@
use PunktDe\OAuth2\Server\Domain\Repository\ClientRepository;
use PunktDe\OAuth2\Server\Domain\Repository\RefreshTokenRepository;
use PunktDe\OAuth2\Server\Domain\Repository\ScopeRepository;
use PunktDe\OAuth2\Server\Domain\Repository\UserRepository;
use PunktDe\OAuth2\Server\Service\KeyManagement;

class AuthorizationServerFactory
Expand Down Expand Up @@ -70,7 +70,7 @@ class AuthorizationServerFactory

/**
* @Flow\Inject(lazy=false)
* @var UserRepository
* @var UserRepositoryInterface
*/
protected $userRepository;

Expand Down
4 changes: 4 additions & 0 deletions Configuration/Objects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
League\OAuth2\Server\Repositories\UserRepositoryInterface:
scope: singleton
className: PunktDe\OAuth2\Server\Domain\Repository\UserRepository

0 comments on commit bb50ce7

Please sign in to comment.