ControllerHasNoRoutes
Less than 1 minute
ControllerHasNoRoutes
Exception thrown when a controller is discovered but declares no route metadata.
class ControllerHasNoRoutes extends \Hazaar\ExceptionExtends: Hazaar\Exception
This 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 Thu, 22 Oct 2026 05:05:30 +0000