Middleware sammeln in Route und Route Group ändern
Ein static array anstatt ein extra collector
die folgenden functions benutzen dann ein static array mit der jeweiligen id:
- https://gitlab.com/grammm/php-gram/phpgram/-/blob/master/src/Route/Route.php#L92
- https://gitlab.com/grammm/php-gram/phpgram/-/blob/master/src/Route/Route.php#L99
- https://gitlab.com/grammm/php-gram/phpgram/-/blob/master/src/Route/RouteGroup.php#L52
- https://gitlab.com/grammm/php-gram/phpgram/-/blob/master/src/Route/RouteGroup.php#L59
Route und Route Group brauchen dann noch static functions wie getMiddeware(int routeId)