We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b9133 commit 4b7a5b2Copy full SHA for 4b7a5b2
src/Controller/DAVController.php
@@ -291,10 +291,12 @@ private function initExceptionListener()
291
}
292
293
#[Route('/dav/{path}', name: 'dav', requirements: ['path' => '.*'])]
294
- public function dav(Request $request, Profiler $profiler, string $path)
+ public function dav(Request $request, ?Profiler $profiler = null, ?string $path)
295
{
296
// We don't want the toolbar on the /dav/* routes
297
- $profiler->disable();
+ if ($profiler instanceof Profiler) {
298
+ $profiler->disable();
299
+ }
300
301
// We need to acknowledge the OPTIONS call before sabre/dav for public
302
// calendars since we're circumventing the lib
0 commit comments