summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-04-11 20:14:02 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-04-11 20:14:02 +0200
commit3e4d3fdffba8776ef334b16b57e3f8209a08f1e5 (patch)
tree4283f2888d7584a3d8b43f8bd029b2b969c1d3fe
parent7ed353ded8edd5255e2e792c89d6307dcb978623 (diff)
Slim down app.php because php 7 already turns errors into exceptions and php 5.6, well whatever :D
-rw-r--r--appinfo/app.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index d987e985b..9eaf981c2 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -13,16 +13,6 @@
namespace OCA\News\AppInfo;
-use Exception;
-
require_once __DIR__ . '/../vendor/autoload.php';
-
-// Turn all errors into exceptions to combat shitty library behavior
-set_error_handler(function ($code, $message) {
- if ($code === E_ERROR || $code === E_USER_ERROR) {
- throw new Exception($message, $code);
- }
-});
-
(new Application)->registerConfig();