| 1 | <?php |
||
| 10 | final class UserIdProvider implements UserIdProviderInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Extracts a user_id from the given HTTP request query params. |
||
| 14 | * |
||
| 15 | * @param ServerRequestInterface $request The incoming HTTP request. |
||
| 16 | * @param array $arguments Any route parameters associated with the request. |
||
| 17 | * |
||
| 18 | * @return string|null The user id if it exists, otherwise null |
||
| 19 | */ |
||
| 20 | public function getUserId(ServerRequestInterface $request, array $arguments = []) |
||
| 25 | } |
||
| 26 |