1 | <?php |
||
7 | final class CsrfTokenGenerator implements CsrfTokenGeneratorInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | private $entropy; |
||
13 | |||
14 | /** |
||
15 | * @param int $entropy |
||
16 | */ |
||
17 | 1 | public function __construct(int $entropy = 256) |
|
21 | |||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | 1 | public function generate(): string |
|
31 | } |
||
32 |