__construct()
__construct(callable $condition, callable $callback)
Constructor
Parameters
callable | $condition | Callback that takes a Request as a parameter and returns a boolean indicating whether the Route matches |
callable | $callback | Callback that represents the action to be taken if the route matches, takes a Request as a parameter |