Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
e257996a
Commit
e257996a
authored
Oct 01, 2013
by
Bertrand Gauthier
Browse files
Simplification.
parent
d1041cbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Provider/Identity/ChainEvent.php
View file @
e257996a
...
@@ -40,9 +40,7 @@ class ChainEvent extends Event
...
@@ -40,9 +40,7 @@ class ChainEvent extends Event
*/
*/
public
function
addRoles
(
array
$roles
=
array
())
public
function
addRoles
(
array
$roles
=
array
())
{
{
foreach
(
$roles
as
$role
)
{
$this
->
roles
=
array_merge
(
$this
->
roles
,
$roles
);
$this
->
roles
[]
=
$role
;
}
return
$this
;
return
$this
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment