Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4b40fb

Browse files
committed
merged branch asm89/fix-security-default-authentication-handlers-config (PR #4864)
Commits ------- f59b052 [Security] Fix the default authentication handlers config definition Discussion ---------- [Security] Fix the default authentication handlers config definition Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/asm89/symfony.png?branch=fix-security-default-authentication-handlers-config)](http://travis-ci.org/asm89/symfony) License of the code: MIT Options should be a collection, when you use the default handler definition as a parent you will get an error that the argument of the constructor is a string and not an array, because for your own service the extension of the security bundle will not replace the arguments.
2 parents e49dfaf + f59b052 commit d4b40fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/SecurityBundle/Resources/config/security_listeners.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@
111111
<service id="security.authentication.success_handler" class="%security.authentication.success_handler.class%" abstract="true" public="false">
112112
<argument type="service" id="security.http_utils" />
113113
<argument />
114-
<argument />
114+
<argument type="collection" /> <!-- Options -->
115115
</service>
116116

117117
<service id="security.authentication.failure_handler" class="%security.authentication.failure_handler.class%" abstract="true" public="false">
118118
<argument type="service" id="http_kernel" />
119119
<argument type="service" id="security.http_utils" />
120-
<argument />
120+
<argument type="collection" /> <!-- Options -->
121121
<argument type="service" id="logger" on-invalid="null" />
122122
</service>
123123

0 commit comments

Comments
 (0)