equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /* |
|
4 * This file is part of the Symfony package. |
|
5 * |
|
6 * (c) Fabien Potencier <fabien@symfony.com> |
|
7 * |
|
8 * For the full copyright and license information, please view the LICENSE |
|
9 * file that was distributed with this source code. |
|
10 */ |
|
11 |
|
12 namespace Symfony\Component\Security\Http\Event; |
|
13 |
|
14 use Symfony\Component\HttpFoundation\Request; |
|
15 use Symfony\Component\Security\Core\User\UserInterface; |
|
16 use Symfony\Component\EventDispatcher\Event; |
|
17 |
|
18 class SwitchUserEvent extends Event |
|
19 { |
|
20 private $request; |
|
21 |
|
22 private $targetUser; |
|
23 |
|
24 public function __construct(Request $request, UserInterface $targetUser) |
|
25 { |
|
26 $this->request = $request; |
|
27 $this->targetUser = $targetUser; |
|
28 } |
|
29 |
|
30 public function getRequest() |
|
31 { |
|
32 return $this->request; |
|
33 } |
|
34 |
|
35 public function getTargetUser() |
|
36 { |
|
37 return $this->targetUser; |
|
38 } |
|
39 } |