Commit e7bff779 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Correction bug introduit lors de la refactorisation pour ZF3.

parent ed53caad
Pipeline #4080 passed with stage
in 23 seconds
...@@ -18,22 +18,22 @@ class PrivilegeController extends Controller ...@@ -18,22 +18,22 @@ class PrivilegeController extends Controller
use PrivilegeProviderAwareTrait; use PrivilegeProviderAwareTrait;
use SessionContainerTrait; use SessionContainerTrait;
// public function __construct(array $rules, ServiceLocatorInterface $serviceLocator) /**
// { * {@inheritdoc}
// $this->serviceLocator = $serviceLocator; */
//
// parent::__construct($rules, $serviceLocator);
// }
public function processConfig() 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(); $pr = $this->getPrivilegeProvider()->getPrivilegesRoles();
foreach ($rules as $index => $rule) { foreach ($rules as $index => $rule) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment