Replaced the static call to Request class by  the actual request in $req...

...uest variable ( Route::getCurrentRequest())