fix: resolve RedisCache array offset error and improve discovery diagnostics

- Fix RedisCache driver to handle MGET failures gracefully with fallback
- Add comprehensive discovery context comparison debug tools
- Identify root cause: WEB context discovery missing 166 items vs CLI
- WEB context missing RequestFactory class entirely (52 vs 69 commands)
- Improved exception handling with detailed binding diagnostics
This commit is contained in:
2025-09-12 20:05:18 +02:00
parent 8040d3e7a5
commit e30753ba0e
46990 changed files with 10789682 additions and 89639 deletions

View File

@@ -30,8 +30,6 @@ final readonly class TemplateRendererInitializer
{
public function __construct(
private DefaultContainer $container,
#private FileScanner $scanner,
#private PathProvider $pathProvider,
private DiscoveryRegistry $results,
) {
}
@@ -79,8 +77,11 @@ final readonly class TemplateRendererInitializer
$this->container->singleton(TemplateProcessor::class, $templateProcessor);
/** @var PathProvider $pathProvider */
$pathProvider = $this->container->get(PathProvider::class);
/** @var Cache $cache */
$cache = $this->container->get(Cache::class);
/** @var PerformanceService $performanceService */
$performanceService = $this->container->get(PerformanceService::class);
$loader = new TemplateLoader(pathProvider: $pathProvider, cache: $cache, discoveryRegistry: $this->results/*, templates: $templates*/);
@@ -88,11 +89,9 @@ final readonly class TemplateRendererInitializer
$this->container->singleton(TemplateLoader::class, $loader);
return new Engine(
$loader,
$pathProvider,
$performanceService,
loader: $loader,
performanceService: $performanceService,
processor: $templateProcessor,
container: $this->container,
cache: $cache,
);
}