-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
120 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/lib/MVC/Symfony/Security/Authentication/DetermineTargetUrlEvent.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) Ibexa AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Ibexa\Core\MVC\Symfony\Security\Authentication; | ||
|
||
use Symfony\Component\HttpFoundation\Request; | ||
use Symfony\Contracts\EventDispatcher\Event; | ||
|
||
final class DetermineTargetUrlEvent extends Event | ||
{ | ||
private Request $request; | ||
|
||
private string $firewallName; | ||
|
||
/** @var array<string, mixed> */ | ||
private array $options; | ||
|
||
/** | ||
* @param array<string, mixed> $options | ||
**/ | ||
public function __construct( | ||
Request $request, | ||
array $options, | ||
string $firewallName | ||
) { | ||
$this->request = $request; | ||
$this->firewallName = $firewallName; | ||
$this->options = $options; | ||
} | ||
|
||
public function getRequest(): Request | ||
{ | ||
return $this->request; | ||
} | ||
|
||
public function getFirewallName(): string | ||
{ | ||
return $this->firewallName; | ||
} | ||
|
||
/** @return array<string, mixed> */ | ||
public function getOptions(): array | ||
{ | ||
return $this->options; | ||
} | ||
|
||
/** @param array<string, mixed> $options */ | ||
public function setOptions(array $options): void | ||
{ | ||
$this->options = $options; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters