| 1 | <?php |
||
| 9 | class CsrfExtension extends AbstractExtension |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Guard |
||
| 13 | */ |
||
| 14 | protected $csrf; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Constructor. |
||
| 18 | * |
||
| 19 | * @param Guard $csrf |
||
| 20 | */ |
||
| 21 | public function __construct(Guard $csrf) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function getFunctions() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Gets the HTML for the CSRF fields. |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function csrfFields() |
||
| 48 | } |
||
| 49 |