mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-24 22:46:08 +02:00
Disable container compilation
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Bootstrap\AppManager;
|
||||
use App\Support\Helpers;
|
||||
use DI\ContainerBuilder;
|
||||
use Dotenv\Dotenv;
|
||||
|
||||
@@ -18,11 +17,6 @@ $container = (new ContainerBuilder)->addDefinitions(
|
||||
...glob(__DIR__ . '/app/config/*.php')
|
||||
);
|
||||
|
||||
// Compile the container
|
||||
if (! Helpers::env('APP_DEBUG', false)) {
|
||||
$container->enableCompilation(__DIR__ . '/app/cache');
|
||||
}
|
||||
|
||||
// Initialize the application
|
||||
$app = $container->build()->call(AppManager::class);
|
||||
|
||||
|
Reference in New Issue
Block a user