Since: 1.0
Author: Bernhard Schussek (bschussek@gmail.com)
Inheritance: extends Puli\Repository\Api\Resource\PuliResource
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getLastModified()
 {
     if (!$this->loaded) {
         $this->loadResourceFromRepo();
     }
     return $this->resource->getMetadata()->getModificationTime();
 }
Example #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 getLastModified()
 {
     return $this->resource->getMetadata()->getModificationTime();
 }