Example #1
0
 /**
  * @param Metadata $metadata
  *
  * @return array
  */
 protected function prepareOptions(Metadata $metadata)
 {
     $options = array('tags' => array_merge_recursive($metadata->getTags(), array('releaseStage' => $metadata->getStage(), 'appVersion' => $metadata->getAppVersion())), 'extra' => array_merge_recursive($metadata->getMetadata(), array('appRootDir' => $metadata->getAppRootDir(), 'releaseStage' => $metadata->getStage(), 'appVersion' => $metadata->getAppVersion())), 'level' => self::$SEVERITY_MAP[$metadata->getSeverity()]);
     $groupingHash = $this->calculateGroupingHash($metadata);
     if ($groupingHash) {
         $options['checksum'] = $groupingHash;
     }
     return $options;
 }