Disable container compilation

This commit is contained in:
Chris Kankiewicz
2020-07-23 10:57:08 -07:00
parent ca31782210
commit 1c4df192ed

View File

@@ -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);