ControllerNotFound
Less than 1 minute
ControllerNotFound
Exception thrown when route dispatch resolves to a controller class that cannot be loaded.
class ControllerNotFound extends \Hazaar\Application\Router\Exception\ExceptionThis error is typically raised after route matching succeeds but the target controller class is missing, misspelled, not autoloadable, or otherwise unavailable at runtime.
The exception message includes both the expected controller class and the route path being handled to aid diagnostics in logs and error responses.
Methods
__construct
Creates a controller-not-found exception.
public __construct(string $controllerClass, string $route): voidParameters
| Parameter | Type | Description |
|---|---|---|
$controllerClass | string | expected controller class name |
$route | string | route path being dispatched |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000