diff --git a/public/index.php b/public/index.php index 7b7c5ad7..115fb285 100644 --- a/public/index.php +++ b/public/index.php @@ -25,7 +25,7 @@ $clock = new SystemClock(); $highResClock = new SystemHighResolutionClock(); $memoryMonitor = new MemoryMonitor(); $collector = new EnhancedPerformanceCollector($clock, $highResClock, $memoryMonitor, enabled: true); -$bootstrapper = new AppBootstrapper($basePath, $collector, $memoryMonitor); +$bootstrapper = new AppBootstrapper($basePath, $collector); $app = $bootstrapper->bootstrapWeb(); // Anwendung ausführen diff --git a/src/Framework/Core/AppBootstrapper.php b/src/Framework/Core/AppBootstrapper.php index 28887d8b..56b9d751 100644 --- a/src/Framework/Core/AppBootstrapper.php +++ b/src/Framework/Core/AppBootstrapper.php @@ -41,7 +41,7 @@ final readonly class AppBootstrapper public function __construct( private string $basePath, private PerformanceCollectorInterface $collector, - private MemoryMonitor $memoryMonitor, + private MemoryMonitor $memoryMonitor = new MemoryMonitor, #private array $config = [], ) { $this->container = new DefaultContainer();