1 | <?php |
||
9 | class FosUserProvider |
||
10 | { |
||
11 | /** @var \FOS\UserBundle\Model\UserManagerInterface */ |
||
12 | private $_fosUserManager; |
||
13 | |||
14 | /** @var \Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface */ |
||
15 | private $_encoderFactory; |
||
16 | |||
17 | |||
18 | |||
19 | function __construct( |
||
26 | |||
27 | |||
28 | /** |
||
29 | * @param string $un |
||
30 | * @param string $pw |
||
31 | * @return \FOS\UserBundle\Model\UserInterface|null |
||
32 | */ |
||
33 | function getUserByUnPw($un, $pw) { |
||
43 | |||
44 | |||
45 | /** |
||
46 | * @param string $email |
||
47 | * @param string $pw |
||
48 | * @return \FOS\UserBundle\Model\UserInterface|null |
||
49 | */ |
||
50 | function getUserByEmailPw($email, $pw) { |
||
60 | |||
61 | |||
62 | /** |
||
63 | * @param UserInterface $user |
||
64 | * @param string $pw |
||
65 | * @return bool |
||
66 | */ |
||
67 | private function isPasswordValid(UserInterface $user, $pw) { |
||
72 | |||
73 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.