Luciano Andrade пре 7 година
родитељ
комит
749b493bc1
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      Services/Webservice.php

+ 9 - 0
Services/Webservice.php

@@ -264,6 +264,15 @@ class Webservice
         return array("error" => "Webservice({$webservice}) not found.");
     }
 
+    public function buildUrlForId($ws,$id = null, $extra= null){
+        $url = $this->serviceContainer->getParameter($ws);
+        if(!is_null($id)){
+                $url = str_replace(".json", "/{$id}", $url);
+        }
+        return $url . $extra;
+
+    }
+
     /**
      * @return ContainerInterface
      */