Use the $request object when available rather than Request:: static invocation