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

@@ -13,6 +13,7 @@ use Traversable;
/**
* Value Object für die Verwaltung von Console Commands
* @implements IteratorAggregate<string, ConsoleCommand>
*/
final readonly class CommandList implements IteratorAggregate, Countable
{
@@ -74,11 +75,17 @@ final readonly class CommandList implements IteratorAggregate, Countable
return $this->commands[$name];
}
/**
* @return array<int, string>
*/
public function getNames(): array
{
return array_keys($this->commands);
}
/**
* @return array<int, string>
*/
public function findSimilar(string $name, int $maxDistance = 3): array
{
$suggestions = [];
@@ -103,6 +110,9 @@ final readonly class CommandList implements IteratorAggregate, Countable
return new ArrayIterator($this->commands);
}
/**
* @return array<string, ConsoleCommand>
*/
public function toArray(): array
{
return $this->commands;