diff options
Diffstat (limited to 'appinfo/app.php')
-rw-r--r-- | appinfo/app.php | 47 |
1 files changed, 21 insertions, 26 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 263ce1c39..8522d8f60 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -16,30 +16,25 @@ namespace OCA\News\AppInfo; use \OCA\News\Config\DependencyException; -require_once __DIR__ . '/setup.php'; - -if (is_compatible()) { - // 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 = new Application(); - - $config = $container->getAppConfig(); - $config->registerNavigation(); - $config->registerBackgroundJobs(); - $config->registerHooks(); - - // check for correct app dependencies - try { - $config->testDependencies(); - } catch(DependencyException $e) { - $logger = $container->getLogger(); - $params = $container->getLoggerParameters(); - $logger->emergency($e->getMessage(), $params); +// 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); } - -}
\ No newline at end of file +}); + +$container = new Application(); + +$config = $container->getAppConfig(); +$config->registerNavigation(); +$config->registerBackgroundJobs(); +$config->registerHooks(); + +// check for correct app dependencies +try { + $config->testDependencies(); +} catch(DependencyException $e) { + $logger = $container->getLogger(); + $params = $container->getLoggerParameters(); + $logger->emergency($e->getMessage(), $params); +} |