From 74242366d95d1106007e5592a06a52f63f41a298 Mon Sep 17 00:00:00 2001
From: gauthierb <gauthierb@d57fa8bc-6af1-4de9-8b7d-78e900e231e7>
Date: Fri, 26 Sep 2014 07:38:24 +0000
Subject: [PATCH] RoleProvider : correction namespace Exception.

---
 .../Application/src/Application/Provider/Role/RoleProvider.php  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/Application/src/Application/Provider/Role/RoleProvider.php b/module/Application/src/Application/Provider/Role/RoleProvider.php
index e586c2645b..e10779d1f5 100644
--- a/module/Application/src/Application/Provider/Role/RoleProvider.php
+++ b/module/Application/src/Application/Provider/Role/RoleProvider.php
@@ -69,7 +69,7 @@ class RoleProvider implements ProviderInterface, EntityManagerAwareInterface
             foreach ($qb->getQuery()->getResult() as $role) { /* @var $role \Application\Entity\Db\Role */
                 $roleId = $role->getType()->getCode();
                 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]);
                 if ($this->roles[$roleId] instanceof StructureAwareInterface && $role->getStructure()){
-- 
GitLab