ControllerHasNoRoutes
Less than 1 minute
ControllerHasNoRoutes
Exception thrown when a controller is discovered but declares no route metadata.
class ControllerHasNoRoutes extends \Hazaar\Application\Router\Exception\ExceptionThis is primarily used by attribute/annotation-based router loaders when a controller class is explicitly targeted for route discovery but does not expose any routable methods. It indicates a configuration or implementation mismatch between loader expectations and controller definitions.
Methods
__construct
Creates a controller-has-no-routes exception.
public __construct(string $controllerClass): voidParameters
| Parameter | Type | Description |
|---|---|---|
$controllerClass | string | fully-qualified controller class name |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000