/** * {@inheritdoc} */ public function getLastModified() { if (!$this->loaded) { $this->loadResourceFromRepo(); } return $this->resource->getMetadata()->getModificationTime(); }
/** * * @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(); }