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:
2025-08-11 20:13:26 +02:00
parent 59fd3dd3b1
commit 55a330b223
3683 changed files with 2956207 additions and 16948 deletions

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace App\Framework\Sitemap;
@@ -12,7 +13,8 @@ final readonly class SitemapEntry
public DateTimeImmutable $lastmod,
public string $changefreq = 'monthly',
public float $priority = 0.5
) {}
) {
}
public function toXml(): string
{

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace App\Framework\Sitemap;
@@ -6,7 +7,7 @@ namespace App\Framework\Sitemap;
use App\Framework\Attributes\Singleton;
use App\Framework\Core\Route;
use App\Framework\Http\Method;
use App\Framework\Router\RouteCollection;
use App\Framework\Router\CompiledRoutes;
use App\Framework\Router\UrlGenerator;
use Generator;
@@ -14,9 +15,10 @@ use Generator;
final readonly class SitemapGenerator
{
public function __construct(
private RouteCollection $routes,
private CompiledRoutes $routes,
private UrlGenerator $urlGenerator
) {}
) {
}
/**
* Generiert Sitemap-URLs aus allen verfügbaren Named Routes
@@ -42,12 +44,12 @@ final readonly class SitemapGenerator
*/
private function getPublicRoutes(): Generator
{
// Hier müssen Sie eine Methode in RouteCollection hinzufügen
foreach ($this->routes->getAllNamedRoutes() as $name => $route) {
// Verwende Generator für memory-effiziente Iteration
foreach ($this->routes->getAllNamedRoutesGenerator() as $name => $route) {
// Nur GET-Routen für Sitemap: Named Routes sind aktuell immer nur Routes mit GET Methode
if (/*$this->supportsMethod($route, Method::GET) &&*/
!$this->isExcludedFromSitemap($route)) {
! $this->isExcludedFromSitemap($route)) {
yield $route;
}
}
@@ -56,7 +58,7 @@ final readonly class SitemapGenerator
private function isStaticRoute(Route $route): bool
{
// Prüft ob Route keine Parameter benötigt
return !str_contains($route->path, '{');
return ! str_contains($route->path, '{');
}
private function supportsMethod(Route $route, Method $method): bool