Use Helper::env() to check if APP_DEBUG enabled

This commit is contained in:
Chris Kankiewicz
2020-07-16 08:26:09 -07:00
parent e8c95117ed
commit c69cf8babb

View File

@@ -1,6 +1,7 @@
<?php
use App\Bootstrap\AppManager;
use App\Support\Helpers;
use DI\ContainerBuilder;
use Dotenv\Dotenv;
@@ -19,7 +20,7 @@ $container = call_user_func_array(
);
// Compile the container
if (filter_var(getenv('APP_DEBUG'), FILTER_VALIDATE_BOOLEAN) !== true) {
if (! Helpers::env('APP_DEBUG', false)) {
$container->enableCompilation(__DIR__ . '/app/cache');
}