8000 [SecurityBundle] Fix FirewallContext constructor 3.4 compatibility by chalasr · Pull Request #27280 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[SecurityBundle] Fix FirewallContext constructor 3.4 compatibility #27280

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
<service id="security.firewall.context" class="%security.firewall.context.class%" abstract="true">
<argument type="collection" />
<argument type="service" id="security.exception_listener" />
<argument>null</argument> <!-- FC Symfony >3.4 -->
<argument /> <!-- LogoutListener -->
</service>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ class FirewallContext
private $exceptionListener;
private $logoutListener;

public function __construct(array $listeners, ExceptionListener $exceptionListener = null, LogoutListener $logoutListener = null)
/**
* @param null $config Dummy argument for forward compatibility with Symfony 3.4
*/
public function __construct(array $listeners, ExceptionListener $exceptionListener = null, $config = null, LogoutListener $logoutListener = null)
{
$this->listeners = $listeners;
$this->exceptionListener = $exceptionListener;
Expand Down
0