Skip to content
This repository was archived by the owner on Dec 28, 2020. It is now read-only.

Commit 041984f

Browse files
committed
Merge pull request #21 from JakeFalcor/master
Fix deprecation notice for symfony >2.7 for DisableCsrfExtension
2 parents 89c09e3 + e8d0416 commit 041984f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Form/Extension/DisableCsrfExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Dunglas\AngularCsrfBundle\Routing\RouteMatcherInterface;
1414
use Symfony\Component\Form\AbstractTypeExtension;
1515
use Symfony\Component\HttpFoundation\RequestStack;
16-
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
16+
use Symfony\Component\OptionsResolver\OptionsResolver;
1717

1818
/**
1919
* Form extension that disables the given forms' CSRF token validation
@@ -70,7 +70,7 @@ public function __construct(
7070
/**
7171
* {@inheritdoc}
7272
*/
73-
public function setDefaultOptions(OptionsResolverInterface $resolver)
73+
public function configureOptions(OptionsResolver $resolver)
7474
{
7575
$request = $this->requestStack->getCurrentRequest();
7676
if (null === $request) {

0 commit comments

Comments
 (0)