route icon indicating copy to clipboard operation
route copied to clipboard

Feature: Extra map() options

Open Visualq opened this issue 1 year ago • 0 comments

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?

Visualq avatar Jan 23 '23 10:01 Visualq