Example #1
0
 /**
  * Get information for logging purposes
  *
  * @param UpdateInfo $updateInfo
  * @param UpdateFile $updateFile
  * @return array
  */
 protected function getLogContext(UpdateInfo $updateInfo, UpdateFile $updateFile) : array
 {
     return ['action' => 'UPDATE', 'name' => $this->name, 'supplier' => $this->supplier->getName(), 'type' => $this->type, 'updateFile' => ['checksum' => $updateFile->getHash(), 'filesize' => $updateFile->getSize(), 'version' => $updateFile->getVersion()], 'updateInfo' => ['name' => $updateInfo->getPackageName(), 'supplier' => $updateInfo->getSupplierName(), 'merkleRoot' => $updateInfo->getMerkleRoot(), 'signature' => $updateInfo->getSignature(true), 'version' => $updateInfo->getVersion()]];
 }