Browse Source

Anomalie #669: Page de test de l'erreur 500

Sevajol Bastien 12 years ago
parent
commit
f275af7745

+ 4 - 0
app/config/routing.yml View File

@@ -152,3 +152,7 @@ MuzichAdminBundle_admin_muzich_admin_bundle_Moderate_tag:
152 152
     resource: "@MuzichAdminBundle/Controller/Moderate_tag/"
153 153
     type:     admingenerator
154 154
     prefix:   /admin/muzich_admin_bundle/Moderate_tag
155
+
156
+test_error:
157
+  pattern:  /test-error
158
+  defaults: { _controller: MuzichCoreBundle:Core:testError }

+ 5 - 0
src/Muzich/CoreBundle/Controller/CoreController.php View File

@@ -719,4 +719,9 @@ class CoreController extends Controller
719 719
     );
720 720
   }
721 721
   
722
+  public function testErrorAction()
723
+  {
724
+    throw new \Exception('test error');
725
+  }
726
+  
722 727
 }

+ 1 - 0
src/Muzich/CoreBundle/Resources/config/security.yml View File

@@ -87,6 +87,7 @@ security:
87 87
         - { path: ^/(?:fr|en)/favoritesajax, role: IS_AUTHENTICATED_ANONYMOUSLY }
88 88
         - { path: ^/(?:fr|en)/ajax, role: IS_AUTHENTICATED_ANONYMOUSLY }
89 89
         - { path: ^/(?:fr|en)/event/view/elements, role: IS_AUTHENTICATED_ANONYMOUSLY }
90
+        - { path: ^/test-error, role: IS_AUTHENTICATED_ANONYMOUSLY }
90 91
         - { path: ^/share-from, role: IS_AUTHENTICATED_ANONYMOUSLY }
91 92
                                         
92 93
         - { path: ^/, roles: ROLE_USER }