Drupal::request()->request->all() returns an empty array
Try this: 

$request = \Drupal::requestStack()-&gt;getCurrentRequest()-&gt;query-&gt;all();


Sidenote: Using a Controller you shouldn't use "\Drupal::..." static request call. Instead, you always have in your controller's enter point function a "Request $request" object as a last argument.