1 | <?php |
||
10 | class UserManager implements UserManagerInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $class; |
||
16 | |||
17 | /** |
||
18 | * @var EncoderFactoryInterface |
||
19 | */ |
||
20 | protected $encoderFactory; |
||
21 | |||
22 | /** |
||
23 | * @var ObjectManager |
||
24 | */ |
||
25 | protected $objectManager; |
||
26 | |||
27 | /** |
||
28 | * Constructor. |
||
29 | * |
||
30 | * @param ObjectManager $objectManager |
||
31 | * @param EncoderFactoryInterface $encoderFactory |
||
32 | * @param string $class |
||
33 | */ |
||
34 | public function __construct(ObjectManager $objectManager, EncoderFactoryInterface $encoderFactory, $class) |
||
40 | |||
41 | /** |
||
42 | * Gets the Doctrine repository for the User class. |
||
43 | * |
||
44 | * @return ObjectRepository |
||
45 | */ |
||
46 | protected function getRepository() |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function createUser() |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function deleteUser(UserInterface $user) |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function findUserBy(array $criteria) |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function findUserByEmail($email) |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function findUserByUsername($username) |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function findUserByUsernameOrEmail($usernameOrEmail) |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function findUserByConfirmationToken($token) |
||
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | public function findUsers() |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | public function getClass() |
||
129 | |||
130 | /** |
||
131 | * {@inheritdoc} |
||
132 | */ |
||
133 | public function updatePassword(UserInterface $user) |
||
151 | |||
152 | /** |
||
153 | * {@inheritdoc} |
||
154 | */ |
||
155 | public function updateUser(UserInterface $user, $flush = true) |
||
164 | } |
||
165 |