protected function create_new_url_generator() { $this->generator = new UrlGenerator($this->get_routes(), $this->context); }