summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Schussek <bschussek@gmail.com>2011-04-22 17:41:21 +0200
committerBernhard Schussek <bschussek@gmail.com>2011-04-22 17:41:21 +0200
commit89792ee93b10b6813707e7ef4a1dacfa7cdb686c (patch)
tree90adf19842cf45211ff759ad77bc698727308249
parentb952ac5b1486987bd27f0b63315534d0f37d5c9c (diff)
downloadsymfony-security-89792ee93b10b6813707e7ef4a1dacfa7cdb686c.zip
symfony-security-89792ee93b10b6813707e7ef4a1dacfa7cdb686c.tar.gz
symfony-security-89792ee93b10b6813707e7ef4a1dacfa7cdb686c.tar.bz2
[Form] Reorganized code into "form extensions"
The extension classes are now the only constructor argument of the FormFactory class. They replace the existing "type loader" classes. new FormFactory(array( new CoreExtension($validator, $storage), new CsrfExtension($csrfProvider), new DoctrineOrmExtension($em), )); Together with a few upcoming commits this mechanism will make * extension of the form framework in bundles and * usage of the forms outside of Symfony2 much easier.
-rw-r--r--Http/Firewall/UsernamePasswordFormAuthenticationListener.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/Firewall/UsernamePasswordFormAuthenticationListener.php b/Http/Firewall/UsernamePasswordFormAuthenticationListener.php
index 5a84391..c8b06ee 100644
--- a/Http/Firewall/UsernamePasswordFormAuthenticationListener.php
+++ b/Http/Firewall/UsernamePasswordFormAuthenticationListener.php
@@ -11,7 +11,7 @@
namespace Symfony\Component\Security\Http\Firewall;
-use Symfony\Component\Form\CsrfProvider\CsrfProviderInterface;
+use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;