route
route copied to clipboard
Feature: Extra map() options
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?