示例#1
0
 /**
  * Fix version for non built lib
  */
 protected function fixVersion($version)
 {
     $v = str_replace('__LIB_VERSION_MAX__', \Jelix\Core\Framework::versionMax(), $version);
     $v = str_replace('__LIB_VERSION__', \Jelix\Core\Framework::version(), $v);
     $v = str_replace('__VERSION__', \Jelix\Core\App::version(), $v);
     return $v;
 }
示例#2
0
 /**
  * Fix version for non built lib.
  */
 protected function fixVersion($version)
 {
     switch ($version) {
         case '__LIB_VERSION_MAX__':
             return \Jelix\Core\Framework::versionMax();
         case '__LIB_VERSION__':
             return \Jelix\Core\Framework::version();
         case '__VERSION__':
             return \Jelix\Core\App::version();
     }
     return trim($version);
 }