Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
e7bff779
Commit
e7bff779
authored
Mar 20, 2019
by
Bertrand Gauthier
Browse files
Correction bug introduit lors de la refactorisation pour ZF3.
parent
ed53caad
Pipeline
#4080
passed with stage
in 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Guard/PrivilegeController.php
View file @
e7bff779
...
...
@@ -18,22 +18,22 @@ class PrivilegeController extends Controller
use
PrivilegeProviderAwareTrait
;
use
SessionContainerTrait
;
// public function __construct(array $rules, ServiceLocatorInterface $serviceLocator)
// {
// $this->serviceLocator = $serviceLocator;
//
// parent::__construct($rules, $serviceLocator);
// }
/**
* {@inheritdoc}
*/
public
function
processConfig
()
{
$this
->
rules
=
$this
->
privilegesToRoles
();
$this
->
config
=
$this
->
privilegesToRoles
(
$this
->
config
);
parent
::
processConfig
();
}
protected
function
privilegesToRoles
()
/**
* @param array $rules
* @return array
*/
protected
function
privilegesToRoles
(
array
$rules
)
{
$rules
=
$this
->
config
;
$pr
=
$this
->
getPrivilegeProvider
()
->
getPrivilegesRoles
();
foreach
(
$rules
as
$index
=>
$rule
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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