Skip to content
Snippets Groups Projects
Commit 74242366 authored by gauthierb's avatar gauthierb
Browse files

RoleProvider : correction namespace Exception.

parent 55699c2b
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ class RoleProvider implements ProviderInterface, EntityManagerAwareInterface ...@@ -69,7 +69,7 @@ class RoleProvider implements ProviderInterface, EntityManagerAwareInterface
foreach ($qb->getQuery()->getResult() as $role) { /* @var $role \Application\Entity\Db\Role */ foreach ($qb->getQuery()->getResult() as $role) { /* @var $role \Application\Entity\Db\Role */
$roleId = $role->getType()->getCode(); $roleId = $role->getType()->getCode();
if (! isset($this->roles[$roleId])){ if (! isset($this->roles[$roleId])){
throw new Exception('Le rôle "'.$roleId.'" est inconnu.'); throw new \Exception('Le rôle "'.$roleId.'" est inconnu.');
} }
$classname = get_class($this->roles[$roleId]); $classname = get_class($this->roles[$roleId]);
if ($this->roles[$roleId] instanceof StructureAwareInterface && $role->getStructure()){ if ($this->roles[$roleId] instanceof StructureAwareInterface && $role->getStructure()){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment