diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-24 09:04:09 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-24 09:04:36 +0200 |
commit | 514b340fda944e288facab6799ba5c67056c2501 (patch) | |
tree | 11b96dc99680b1eec4f49d95aaa06c7c313f6d0c /appinfo/application.php | |
parent | 3592bcb326e80946d1578dcaa86533ec24f9f949 (diff) |
only register error handler once
Diffstat (limited to 'appinfo/application.php')
-rw-r--r-- | appinfo/application.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/appinfo/application.php b/appinfo/application.php index 4c99583e6..2dea28fc2 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -67,14 +67,6 @@ class Application extends App { public function __construct(array $urlParams=array()){ parent::__construct('news', $urlParams); - // 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); - } - }); - - $container = $this->getContainer(); |