소스 검색

agregue metodo

Luciano Andrade 8 년 전
부모
커밋
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
      */