getBody() public method

Returns the body of the resource.
public getBody ( ) : string
return string The resource body.
Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function load(FilterInterface $additionalFilter = null)
 {
     if (!$this->loaded) {
         $this->loadResourceFromRepo();
     }
     $this->doLoad($this->resource->getBody(), $additionalFilter);
 }
Esempio n. 2
0
 /**
  *
  * @param BodyResource $file
  * @return array
  */
 private function getJson(BodyResource $file)
 {
     $config = Json::decode($file->getBody());
     // fix version
     if (!isset($config['version'])) {
         $config['version'] = 'dev-master';
     }
     return $config;
 }
 /**
  * {@inheritdoc}
  */
 public function load(FilterInterface $additionalFilter = null)
 {
     $this->doLoad($this->resource->getBody(), $additionalFilter);
 }