mirror of
https://github.com/nextcloud/app_api.git
synced 2025-07-29 21:02:07 +00:00
Dev: use PHP8 attribute instead annoation. Added debug logging. Other fixes
This commit is contained in:
@ -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) {
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user