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

@@ -20,6 +20,9 @@ class RouteNotFound extends FrameworkException implements HttpException
protected string $route;
/**
* @param array<string, mixed> $context
*/
public function __construct(string $route, ?Throwable $previous = null, int $code = 0, array $context = [])
{
$this->route = $route;

View File

@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace App\Framework\Router\Result;
use App\Framework\Http\Status;
use App\Framework\Router\ActionResult;
/**
* HTML Result for raw HTML content
*
* Used when a controller needs to return raw HTML content
* instead of using a template engine.
*/
final readonly class HtmlResult implements ActionResult
{
public function __construct(
public string $content,
public Status $status = Status::OK,
) {
}
}