Example #1
0
 /**
  * Return version.
  *
  * @return string
  */
 public function getVersion()
 {
     if (!isset($this->version)) {
         try {
             $this->version = Util::runGitCommand('git describe --tags HEAD');
         } catch (\RuntimeException $exception) {
             $this->version = self::VERSION;
         }
     }
     return $this->version;
 }