Jelix\Core\AppInstance::version PHP Method

version() public method

return the version of the application containing into a VERSION file It doesn't read the version from project.xml or composer.json.
public version ( ) : string
return string
    public function version()
    {
        if ($this->_version === null) {
            if (file_exists($this->appPath . 'VERSION')) {
                $this->_version = trim(str_replace(array('SERIAL', "\n"), array('0', ''), file_get_contents($this->appPath . 'VERSION')));
            } else {
                $this->_version = '0';
            }
        }
        return $this->_version;
    }