Dev: use PHP8 attribute instead annoation. Added debug logging. Other fixes

This commit is contained in:
Andrey Borysenko
2023-06-21 20:11:29 +03:00
parent 7126492852
commit e3486fd361
9 changed files with 132 additions and 127 deletions

View File

@ -73,7 +73,9 @@ class Application extends App implements IBootstrap {
$server = $context->getServerContainer();
try {
$profiler = $server->get(IProfiler::class);
$profiler->add(new AEDataCollector());
if ($profiler->isEnabled()) {
$profiler->add(new AEDataCollector());
}
} catch (NotFoundExceptionInterface|ContainerExceptionInterface) {
}
}