コード例 #1
0
 /**
  * Transform resource into a config array
  * @param FilesystemResource $resource
  * @return array 
  */
 public function transform(FilesystemResource $resource)
 {
     $config = json_decode($resource->getBody(), true);
     return $this->validateConfig($config) ? $config : [];
 }