| 1 | <?php |
||
| 9 | final class CsrfTokenFactory implements ICsrfTokenFactory |
||
| 10 | { |
||
| 11 | use Nette\SmartObject; |
||
| 12 | |||
| 13 | /** @var \Nette\Http\Session */ |
||
| 14 | private $session; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param \Nette\Http\Session $session |
||
| 18 | */ |
||
| 19 | public function __construct(Nette\Http\Session $session) |
||
| 23 | |||
| 24 | /************** interface \SixtyEightPublishers\User\Authentication\Csrf\ICsrfTokenFactory **************/ |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function create(string $component = ''): string |
||
| 41 | } |
||
| 42 |