Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new RequestResponseNamedArgs route strategy #3132

Merged
merged 2 commits into from
Jan 14, 2022
Merged

Add new RequestResponseNamedArgs route strategy #3132

merged 2 commits into from
Jan 14, 2022

Commits on Jan 14, 2022

  1. Add new RequestResponseNamedArgs route strategy

    PHP8.0 added support for named parameters https://wiki.php.net/rfc/named_params
    This new strategy will map route to parameters name.
    
    ```
    $app->get('/{greeting}/{name}', function (ServerRequestInterface $request, ResponseInterface $response, $name, $greeting) {
        $response->getBody()->write("{$greeting} {$name}");
        return $response;
    });
    ```
    adoy committed Jan 14, 2022
    Configuration menu
    Copy the full SHA
    f2120e9 View commit details
    Browse the repository at this point in the history
  2. Remove docbloc

    l0gicgate authored Jan 14, 2022
    Configuration menu
    Copy the full SHA
    65b1ad4 View commit details
    Browse the repository at this point in the history