summaryrefslogtreecommitdiffstats
path: root/Http/Event/SwitchUserEvent.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2013-09-29 21:43:28 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2013-09-29 21:43:28 +0200
commit46c7d3e11f3ab534ce84dfaeadd7c2870dba1a36 (patch)
tree742f5653e60dddcd960331a77dedaf50fb602b75 /Http/Event/SwitchUserEvent.php
parenta940d57cac60a12146e2fd1cd543c59109105ad9 (diff)
parent8969dd88b7a4c3e60cee10ad4094dcd05de62965 (diff)
downloadsymfony-security-46c7d3e11f3ab534ce84dfaeadd7c2870dba1a36.zip
symfony-security-46c7d3e11f3ab534ce84dfaeadd7c2870dba1a36.tar.gz
symfony-security-46c7d3e11f3ab534ce84dfaeadd7c2870dba1a36.tar.bz2
Merge branch '2.3'
* 2.3: fixed Client when using the terminable event Fix problem with Windows file links (backslash in JavaScript string) [Security] fixed wrong phpdoc [DependencyInjection] Prevented inlining of lazy loaded private service definitions. [Routing] removed extra argument [HttpFoundation] Header `HTTP_X_FORWARDED_PROTO` can contain various values Some proxies use `ssl` instead of `https`, as well as Lighttpd mod_proxy allows value chaining (`https, http`, where `https` is always first when request is encrypted). Added doc comments Conflicts: src/Symfony/Component/Routing/Router.php src/Symfony/Component/Security/Http/Firewall.php
Diffstat (limited to 'Http/Event/SwitchUserEvent.php')
-rw-r--r--Http/Event/SwitchUserEvent.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/Http/Event/SwitchUserEvent.php b/Http/Event/SwitchUserEvent.php
index 4a7dcaf..a553154 100644
--- a/Http/Event/SwitchUserEvent.php
+++ b/Http/Event/SwitchUserEvent.php
@@ -15,10 +15,14 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\EventDispatcher\Event;
+/**
+ * SwitchUserEvent
+ *
+ * @author Fabien Potencier <fabien@symfony.com>
+ */
class SwitchUserEvent extends Event
{
private $request;
-
private $targetUser;
public function __construct(Request $request, UserInterface $targetUser)
@@ -27,11 +31,17 @@ class SwitchUserEvent extends Event
$this->targetUser = $targetUser;
}
+ /**
+ * @return Request
+ */
public function getRequest()
{
return $this->request;
}
+ /**
+ * @return UserInterface
+ */
public function getTargetUser()
{
return $this->targetUser;