Skip to content

Commit 0aad3bb

Browse files
committed
Merge pull request #10 from ray-di/hotfix
add antiCsrf prop
2 parents f396de4 + ac6842b commit 0aad3bb

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/AbstractAuraForm.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717

1818
abstract class AbstractAuraForm extends Form implements FormInterface
1919
{
20+
/**
21+
* @var AntiCsrfInterface
22+
*/
23+
protected $antiCsrf;
24+
2025
/**
2126
* @param BuilderInterface $builder An object to build input objects.
2227
* @param FilterInterface $filter A filter object for this fieldset.

src/AbstractForm.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ abstract class AbstractForm extends Form implements FormInterface
2727
*/
2828
protected $errorMessages;
2929

30+
/**
31+
* @var AntiCsrfInterface
32+
*/
33+
protected $antiCsrf;
34+
3035
/**
3136
* @param BuilderInterface $builder
3237
* @param FilterFactory $filterFactory

src/SetAntiCsrfTrait.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010

1111
trait SetAntiCsrfTrait
1212
{
13-
/**
14-
* @var AntiCsrfInterface
15-
*/
16-
protected $antiCsrf;
17-
1813
/**
1914
* @param AntiCsrfInterface $antiCsrf
2015
*

0 commit comments

Comments
 (0)