1 | <?php |
||
12 | class AdminCreator |
||
13 | { |
||
14 | /** |
||
15 | * @var RegistryInterface |
||
16 | */ |
||
17 | private $doctrine; |
||
18 | /** |
||
19 | * @var UserPasswordEncoderInterface |
||
20 | */ |
||
21 | private $userPasswordEncoder; |
||
22 | |||
23 | /** |
||
24 | * @param RegistryInterface $doctrine |
||
25 | * @param UserPasswordEncoderInterface $userPasswordEncoder |
||
26 | */ |
||
27 | public function __construct(RegistryInterface $doctrine, UserPasswordEncoderInterface $userPasswordEncoder) |
||
32 | |||
33 | /** |
||
34 | * @param $email |
||
35 | * @param $password |
||
36 | * @param $firstName |
||
37 | * @param $lastName |
||
38 | */ |
||
39 | public function create($email, $password, $firstName, $lastName) |
||
59 | } |