Beispiel #1
0
 /**
  * Change the service to a complete URL
  * @param string|Gnkw\Http\Uri $service The service to transform
  * @return string The complete URL
  */
 protected function urlService($service)
 {
     if ($service instanceof Uri) {
         $uri = $service->get();
     } else {
         $uri = $service;
     }
     return $this->baseUrl . '/' . ltrim($uri, '/');
 }