File tree 8 files changed +25
-9
lines changed
8 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 12
12
namespace AuthBucket \Bundle \OAuth2Bundle \Entity ;
13
13
14
14
use AuthBucket \OAuth2 \Model \AccessTokenManagerInterface ;
15
+ use Doctrine \ORM \EntityRepository ;
15
16
16
17
/**
17
18
* AccessTokenRepository.
18
19
*
19
20
* This class was generated by the Doctrine ORM. Add your own custom
20
21
* repository methods below.
21
22
*/
22
- class AccessTokenRepository extends AbstractEntityRepository implements AccessTokenManagerInterface
23
+ class AccessTokenRepository extends EntityRepository implements AccessTokenManagerInterface
23
24
{
25
+ use ModelManagerEntityRepository;
24
26
}
Original file line number Diff line number Diff line change 12
12
namespace AuthBucket \Bundle \OAuth2Bundle \Entity ;
13
13
14
14
use AuthBucket \OAuth2 \Model \AuthorizeManagerInterface ;
15
+ use Doctrine \ORM \EntityRepository ;
15
16
16
17
/**
17
18
* AuthorizeRepository.
18
19
*
19
20
* This class was generated by the Doctrine ORM. Add your own custom
20
21
* repository methods below.
21
22
*/
22
- class AuthorizeRepository extends AbstractEntityRepository implements AuthorizeManagerInterface
23
+ class AuthorizeRepository extends EntityRepository implements AuthorizeManagerInterface
23
24
{
25
+ use ModelManagerEntityRepository;
24
26
}
Original file line number Diff line number Diff line change 12
12
namespace AuthBucket \Bundle \OAuth2Bundle \Entity ;
13
13
14
14
use AuthBucket \OAuth2 \Model \ClientManagerInterface ;
15
+ use Doctrine \ORM \EntityRepository ;
15
16
16
17
/**
17
18
* ClientRepository.
18
19
*
19
20
* This class was generated by the Doctrine ORM. Add your own custom
20
21
* repository methods below.
21
22
*/
22
- class ClientRepository extends AbstractEntityRepository implements ClientManagerInterface
23
+ class ClientRepository extends EntityRepository implements ClientManagerInterface
23
24
{
25
+ use ModelManagerEntityRepository;
24
26
}
Original file line number Diff line number Diff line change 12
12
namespace AuthBucket \Bundle \OAuth2Bundle \Entity ;
13
13
14
14
use AuthBucket \OAuth2 \Model \CodeManagerInterface ;
15
+ use Doctrine \ORM \EntityRepository ;
15
16
16
17
/**
17
18
* CodeRepository.
18
19
*
19
20
* This class was generated by the Doctrine ORM. Add your own custom
20
21
* repository methods below.
21
22
*/
22
- class CodeRepository extends AbstractEntityRepository implements CodeManagerInterface
23
+ class CodeRepository extends EntityRepository implements CodeManagerInterface
23
24
{
25
+ use ModelManagerEntityRepository;
24
26
}
Original file line number Diff line number Diff line change 21
21
* This class was generated by the Doctrine ORM. Add your own custom
22
22
* repository methods below.
23
23
*/
24
- class AbstractEntityRepository extends EntityRepository implements ModelManagerInterface
24
+ trait ModelManagerEntityRepository
25
25
{
26
26
public function createModel (ModelInterface $ model )
27
27
{
Original file line number Diff line number Diff line change 12
12
namespace AuthBucket \Bundle \OAuth2Bundle \Entity ;
13
13
14
14
use AuthBucket \OAuth2 \Model \RefreshTokenManagerInterface ;
15
+ use Doctrine \ORM \EntityRepository ;
15
16
16
17
/**
17
18
* RefreshTokenRepository.
18
19
*
19
20
* This class was generated by the Doctrine ORM. Add your own custom
20
21
* repository methods below.
21
22
*/
22
- class RefreshTokenRepository extends AbstractEntityRepository implements RefreshTokenManagerInterface
23
+ class RefreshTokenRepository extends EntityRepository implements RefreshTokenManagerInterface
23
24
{
25
+ use ModelManagerEntityRepository;
24
26
}
Original file line number Diff line number Diff line change 12
12
namespace AuthBucket \Bundle \OAuth2Bundle \Entity ;
13
13
14
14
use AuthBucket \OAuth2 \Model \ScopeManagerInterface ;
15
+ use Doctrine \ORM \EntityRepository ;
15
16
16
17
/**
17
18
* ScopeRepository.
18
19
*
19
20
* This class was generated by the Doctrine ORM. Add your own custom
20
21
* repository methods below.
21
22
*/
22
- class ScopeRepository extends AbstractEntityRepository implements ScopeManagerInterface
23
+ class ScopeRepository extends EntityRepository implements ScopeManagerInterface
23
24
{
25
+ use ModelManagerEntityRepository;
24
26
}
Original file line number Diff line number Diff line change 11
11
12
12
namespace AuthBucket \Bundle \OAuth2Bundle \Tests \TestBundle \Entity ;
13
13
14
- use AuthBucket \Bundle \OAuth2Bundle \Entity \AbstractEntityRepository ;
14
+ use AuthBucket \Bundle \OAuth2Bundle \Entity \ModelManagerEntityRepository ;
15
+ use AuthBucket \OAuth2 \Model \ModelManagerInterface ;
16
+ use Doctrine \ORM \EntityRepository ;
15
17
use Symfony \Bridge \Doctrine \Security \User \UserLoaderInterface ;
16
18
use Symfony \Component \Security \Core \Exception \UsernameNotFoundException ;
17
19
use Symfony \Component \Security \Core \User \UserInterface ;
22
24
* This class was generated by the Doctrine ORM. Add your own custom
23
25
* repository methods below.
24
26
*/
25
- class UserRepository extends AbstractEntityRepository implements UserLoaderInterface
27
+ class UserRepository extends EntityRepository implements UserLoaderInterface, ModelManagerInterface
26
28
{
29
+ use ModelManagerEntityRepository;
30
+
27
31
public function createUser ()
28
32
{
29
33
$ class = $ this ->getClassName ();
You can’t perform that action at this time.
0 commit comments