1 | <?php |
||
14 | class TokenFactory implements TokenFactoryInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var TokenConfigurationRegistry |
||
18 | */ |
||
19 | private $registry; |
||
20 | |||
21 | /** |
||
22 | * @var InformationGuesserInterface |
||
23 | */ |
||
24 | private $informationGuesser; |
||
25 | |||
26 | /** |
||
27 | * @var UserManagerInterface |
||
28 | */ |
||
29 | private $userManager; |
||
30 | |||
31 | /** |
||
32 | * @var TokenRepositoryInterface |
||
33 | */ |
||
34 | private $repository; |
||
35 | |||
36 | /** |
||
37 | * @param TokenConfigurationRegistry $registry |
||
38 | * @param InformationGuesserInterface $informationGuesser |
||
39 | * @param UserManagerInterface $userManager |
||
40 | * @param TokenRepositoryInterface $repository |
||
41 | */ |
||
42 | 1 | public function __construct( |
|
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | 1 | public function create($user, $purpose, array $payload = []) |
|
83 | } |
||
84 |