Просмотр исходного кода

Remove useless try/catch/throw codes

Because this is completly useless.
Sullivan SENECHAL 9 лет назад
Родитель
Сommit
ada81b7abc

+ 0 - 2
Security/Handler/AclSecurityHandler.php

@@ -137,8 +137,6 @@ class AclSecurityHandler implements AclSecurityHandlerInterface
             return $this->authorizationChecker->isGranted($this->superAdminRoles) || $this->authorizationChecker->isGranted($attributes, $object);
         } catch (AuthenticationCredentialsNotFoundException $e) {
             return false;
-        } catch (\Exception $e) {
-            throw $e;
         }
     }
 

+ 0 - 2
Security/Handler/RoleSecurityHandler.php

@@ -67,8 +67,6 @@ class RoleSecurityHandler implements SecurityHandlerInterface
                 || $this->authorizationChecker->isGranted($attributes, $object);
         } catch (AuthenticationCredentialsNotFoundException $e) {
             return false;
-        } catch (\Exception $e) {
-            throw $e;
         }
     }