mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-22 21:54:15 +02:00
Use Helper::env() to check if APP_DEBUG enabled
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user