Open Visualq opened 1 year ago
Currently the map function signature is:
public function map(string $method, string $path, $handler): Route
It would be nice if we are able to pass some extra options along:
public function map(string $method, string $path, $handler, array $options = []): Route
Or if this is achievable in another way without having to instantiate the handler first?
Currently the map function signature is:
public function map(string $method, string $path, $handler): Route
It would be nice if we are able to pass some extra options along:
public function map(string $method, string $path, $handler, array $options = []): Route
Or if this is achievable in another way without having to instantiate the handler first?