fix bugs
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2024-06-14 18:14:14 +00:00
parent 8051e949c2
commit 25713f704f

View File

@ -50,12 +50,13 @@ class Comments
throw new \Exception('Couldn\'t parse mapper'); throw new \Exception('Couldn\'t parse mapper');
} }
$mapper = \str_replace([ // @todo removed until modular mapper extension is implemented
'// @Module Comments ', // $mapper = \str_replace([
'/* @Module Comments ', // '// @Module Comments ',
' @Module Comments */', // '/* @Module Comments ',
], '', $mapper); // ' @Module Comments */',
\file_put_contents(__DIR__ . '/../../Models/NewsArticleMapper.php', $mapper); // ], '', $mapper);
// \file_put_contents(__DIR__ . '/../../Models/NewsArticleMapper.php', $mapper);
Autoloader::invalidate(__DIR__ . '/../../Models/NewsArticleMapper.php'); Autoloader::invalidate(__DIR__ . '/../../Models/NewsArticleMapper.php');
} }