| 1 | <?php |
||
| 11 | class CsrfTokenExtension extends \Twig_Extension |
||
|
|
|||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var CsrfTokenManagerInterface |
||
| 15 | */ |
||
| 16 | protected $csrfTokenManager; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param CsrfTokenManagerInterface $csrfTokenManager |
||
| 20 | */ |
||
| 21 | public function __construct(CsrfTokenManagerInterface $csrfTokenManager) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function getFilters() |
||
| 35 | |||
| 36 | public function getCsrfToken($intention) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Returns the name of the extension. |
||
| 43 | * |
||
| 44 | * @return string The extension name |
||
| 45 | */ |
||
| 46 | public function getName() |
||
| 50 | } |
||
| 51 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.