Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Entity/AccessTokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
namespace AuthBucket\Bundle\OAuth2Bundle\Entity;

use AuthBucket\OAuth2\Model\AccessTokenManagerInterface;
use Doctrine\ORM\EntityRepository;

/**
* AccessTokenRepository.
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class AccessTokenRepository extends AbstractEntityRepository implements AccessTokenManagerInterface
class AccessTokenRepository extends EntityRepository implements AccessTokenManagerInterface
{
use ModelManagerEntityRepository;
}
4 changes: 3 additions & 1 deletion src/Entity/AuthorizeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
namespace AuthBucket\Bundle\OAuth2Bundle\Entity;

use AuthBucket\OAuth2\Model\AuthorizeManagerInterface;
use Doctrine\ORM\EntityRepository;

/**
* AuthorizeRepository.
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class AuthorizeRepository extends AbstractEntityRepository implements AuthorizeManagerInterface
class AuthorizeRepository extends EntityRepository implements AuthorizeManagerInterface
{
use ModelManagerEntityRepository;
}
4 changes: 3 additions & 1 deletion src/Entity/ClientRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
namespace AuthBucket\Bundle\OAuth2Bundle\Entity;

use AuthBucket\OAuth2\Model\ClientManagerInterface;
use Doctrine\ORM\EntityRepository;

/**
* ClientRepository.
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ClientRepository extends AbstractEntityRepository implements ClientManagerInterface
class ClientRepository extends EntityRepository implements ClientManagerInterface
{
use ModelManagerEntityRepository;
}
4 changes: 3 additions & 1 deletion src/Entity/CodeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
namespace AuthBucket\Bundle\OAuth2Bundle\Entity;

use AuthBucket\OAuth2\Model\CodeManagerInterface;
use Doctrine\ORM\EntityRepository;

/**
* CodeRepository.
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class CodeRepository extends AbstractEntityRepository implements CodeManagerInterface
class CodeRepository extends EntityRepository implements CodeManagerInterface
{
use ModelManagerEntityRepository;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class AbstractEntityRepository extends EntityRepository implements ModelManagerInterface
trait ModelManagerEntityRepository
{
public function createModel(ModelInterface $model)
{
Expand Down
4 changes: 3 additions & 1 deletion src/Entity/RefreshTokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
namespace AuthBucket\Bundle\OAuth2Bundle\Entity;

use AuthBucket\OAuth2\Model\RefreshTokenManagerInterface;
use Doctrine\ORM\EntityRepository;

/**
* RefreshTokenRepository.
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class RefreshTokenRepository extends AbstractEntityRepository implements RefreshTokenManagerInterface
class RefreshTokenRepository extends EntityRepository implements RefreshTokenManagerInterface
{
use ModelManagerEntityRepository;
}
4 changes: 3 additions & 1 deletion src/Entity/ScopeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
namespace AuthBucket\Bundle\OAuth2Bundle\Entity;

use AuthBucket\OAuth2\Model\ScopeManagerInterface;
use Doctrine\ORM\EntityRepository;

/**
* ScopeRepository.
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ScopeRepository extends AbstractEntityRepository implements ScopeManagerInterface
class ScopeRepository extends EntityRepository implements ScopeManagerInterface
{
use ModelManagerEntityRepository;
}
8 changes: 6 additions & 2 deletions tests/TestBundle/Entity/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

namespace AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity;

use AuthBucket\Bundle\OAuth2Bundle\Entity\AbstractEntityRepository;
use AuthBucket\Bundle\OAuth2Bundle\Entity\ModelManagerEntityRepository;
use AuthBucket\OAuth2\Model\ModelManagerInterface;
use Doctrine\ORM\EntityRepository;
use Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\User\UserInterface;
Expand All @@ -22,8 +24,10 @@
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class UserRepository extends AbstractEntityRepository implements UserLoaderInterface
class UserRepository extends EntityRepository implements UserLoaderInterface, ModelManagerInterface
{
use ModelManagerEntityRepository;

public function createUser()
{
$class = $this->getClassName();
Expand Down