From 8b2c6e6b9231d6e4c1d1ce2e63e71a56945856b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Mummert?= Date: Mon, 12 Jan 2026 11:18:02 +0100 Subject: [PATCH] add files uuid --- src/Command/MeilisearchFilesParseCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Command/MeilisearchFilesParseCommand.php b/src/Command/MeilisearchFilesParseCommand.php index a911276..422f514 100644 --- a/src/Command/MeilisearchFilesParseCommand.php +++ b/src/Command/MeilisearchFilesParseCommand.php @@ -102,7 +102,11 @@ class MeilisearchFilesParseCommand extends Command continue; } - $absolutePath = TL_ROOT . '/' . $normalized; + $root = defined('TL_ROOT') + ? TL_ROOT + : $this->framework->getContainer()->getParameter('kernel.project_dir') . '/public'; + + $absolutePath = $root . '/' . $normalized; if (!is_file($absolutePath)) { $this->log('File missing, skip', [