diff --git a/composer.json b/composer.json index d31e26c0..6440e551 100644 --- a/composer.json +++ b/composer.json @@ -25,21 +25,14 @@ "chen-see/chen-pay": "^1.0@dev", "league/omnipay": "^3", "lokielse/omnipay-alipay": "*", - "remotelyliving/php-dns": "3.0.6", "charlottedunois/yasmin": "*", + "khanamiryan/qrcode-detector-decoder": "*", + "remotelyliving/php-dns": "3.0.6", "symfony/yaml": "^4.4@dev" }, "autoload": { - "classmap": [], "psr-4": { "App\\": "app/" } - }, - "config": { - "secure-http": false - }, - "minimum-stability": "dev", - "require-dev": { - "khanamiryan/qrcode-detector-decoder": "*" } -} \ No newline at end of file +} diff --git a/config/routes.php b/config/routes.php index 71cba755..47704654 100644 --- a/config/routes.php +++ b/config/routes.php @@ -36,7 +36,7 @@ $container['notAllowedHandler'] = static function ($c) { }; }; -if ($debug == false) { +if (DEBUG == false) { $container['errorHandler'] = static function ($c) { return static function ($request, $response, $exception) use ($c) { return $response->withAddedHeader('Location', '/500');