summaryrefslogtreecommitdiffstats
path: root/Http/Authentication/DefaultAuthenticationSuccessHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'Http/Authentication/DefaultAuthenticationSuccessHandler.php')
-rw-r--r--Http/Authentication/DefaultAuthenticationSuccessHandler.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/Http/Authentication/DefaultAuthenticationSuccessHandler.php b/Http/Authentication/DefaultAuthenticationSuccessHandler.php
index 5d414c6..8139786 100644
--- a/Http/Authentication/DefaultAuthenticationSuccessHandler.php
+++ b/Http/Authentication/DefaultAuthenticationSuccessHandler.php
@@ -26,6 +26,16 @@ use Symfony\Component\Security\Http\HttpUtils;
class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface
{
/**
+ * @var HttpUtils
+ */
+ protected $httpUtils;
+
+ /**
+ * @var array
+ */
+ protected $options;
+
+ /**
* Constructor.
*
* @param HttpUtils $httpUtils HttpUtils
@@ -38,6 +48,7 @@ class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandle
$this->options = array_merge(array(
'always_use_default_target_path' => false,
'default_target_path' => '/',
+ 'login_path' => '/login',
'target_path_parameter' => '_target_path',
'use_referer' => false,
), $options);