Gets the route parameters.
The _route_params request attributes is automatically set by the RouterListener.
public function getRouteParams() : array { return isset($this->data['request_attributes']['_route_params']) ? $this->data['request_attributes']['_route_params'] ->getValue() : []; }