コード例 #1
0
 protected function setUp()
 {
     $file = FileLoader::loadFile();
     $this->json = (string) trim(file_get_contents($file));
     $halJsonReader = new HalJsonReader();
     $this->resource = new Resource($halJsonReader->execute($this->json));
 }
コード例 #2
0
ファイル: HalJson.php プロジェクト: ma-si/apigility-client
 public function __construct(HttpClient $client, HttpResponse $response)
 {
     $halJsonReader = new JsonReader();
     $this->content = new Resource($halJsonReader->execute($response->getBody()));
 }