Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\View\Processors;
|
||||
|
||||
use App\Framework\Template\Processing\StringProcessor;
|
||||
use App\Framework\View\RenderContext;
|
||||
use App\Framework\View\StringProcessor;
|
||||
|
||||
# Formatiert Datumsfelder etwa mit einem Tag `<date value="iso_date" format="d.m.Y" />`.
|
||||
|
||||
final readonly class DateFormatProcessor implements StringProcessor
|
||||
{
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
@@ -19,7 +20,7 @@ final readonly class DateFormatProcessor implements StringProcessor
|
||||
$key = $matches[1];
|
||||
$format = $matches[2];
|
||||
|
||||
if (!isset($context->data[$key]) || !($context->data[$key] instanceof \DateTimeInterface)) {
|
||||
if (! isset($context->data[$key]) || ! ($context->data[$key] instanceof \DateTimeInterface)) {
|
||||
return $matches[0]; // Unverändert lassen
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user