* [ADD] Added mime type file checking instead of extension. Thanks to @vmario89 for the feedback. Related #825

* [MOD] Improved exception handling in controllers

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-11-10 21:41:07 +01:00
parent a159569e74
commit ed956eec54
53 changed files with 924 additions and 179 deletions

View File

@@ -119,6 +119,8 @@ final class ClientController extends ControllerBase implements CrudControllerInt
} catch (\Exception $e) {
processException($e);
$this->eventDispatcher->notifyEvent('exception', new Event($e));
return $this->returnJsonResponseException($e);
}
}
@@ -183,6 +185,8 @@ final class ClientController extends ControllerBase implements CrudControllerInt
} catch (\Exception $e) {
processException($e);
$this->eventDispatcher->notifyEvent('exception', new Event($e));
return $this->returnJsonResponseException($e);
}
}
@@ -229,6 +233,8 @@ final class ClientController extends ControllerBase implements CrudControllerInt
} catch (\Exception $e) {
processException($e);
$this->eventDispatcher->notifyEvent('exception', new Event($e));
return $this->returnJsonResponseException($e);
}
}
@@ -265,6 +271,8 @@ final class ClientController extends ControllerBase implements CrudControllerInt
} catch (\Exception $e) {
processException($e);
$this->eventDispatcher->notifyEvent('exception', new Event($e));
return $this->returnJsonResponseException($e);
}
}
@@ -303,6 +311,8 @@ final class ClientController extends ControllerBase implements CrudControllerInt
} catch (\Exception $e) {
processException($e);
$this->eventDispatcher->notifyEvent('exception', new Event($e));
return $this->returnJsonResponseException($e);
}
}
@@ -334,6 +344,8 @@ final class ClientController extends ControllerBase implements CrudControllerInt
} catch (\Exception $e) {
processException($e);
$this->eventDispatcher->notifyEvent('exception', new Event($e));
return $this->returnJsonResponseException($e);
}
}