getBody() public méthode

Returns the body of the resource.
public getBody ( ) : string
Résultat string The resource body.
 /**
  * {@inheritdoc}
  */
 public function load(FilterInterface $additionalFilter = null)
 {
     if (!$this->loaded) {
         $this->loadResourceFromRepo();
     }
     $this->doLoad($this->resource->getBody(), $additionalFilter);
 }
Exemple #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);
 }