Fix type hint of UrlGenerator

It is implied the UrlGenerator needs an instance of a Symfony request but that's not actually true because some methods that are called by the class (such as `$this->request->root()`) only exist on Illuminate requests.