feat: kernel dump

This commit is contained in:
Nuno Maduro
2023-02-18 14:39:44 +00:00
parent d0e949bf19
commit 7fc12613a8
10 changed files with 201 additions and 24 deletions

View File

@ -31,6 +31,7 @@ final class Kernel
Bootstrappers\BootSubscribers::class,
Bootstrappers\BootFiles::class,
Bootstrappers\BootView::class,
Bootstrappers\BootKernelDump::class,
];
/**
@ -106,6 +107,12 @@ final class Kernel
*/
public function shutdown(): void
{
$preBufferOutput = Container::getInstance()->get(KernelDump::class);
assert($preBufferOutput instanceof KernelDump);
$preBufferOutput->shutdown();
CallsShutdown::execute();
}
}