Service/VersionManager.php
public function getVersion()
    {
        $cacheItem = $this->cache->getItem('version');
        if ($cacheItem->isHit()) {
            return $cacheItem->get();
        } else {
            $version = $this->getVersionFromProvider();
            $cacheItem->set($version);
            $this->cache->save($cacheItem);

            return $version;
        }
    }
public function getVersion()
    {
        $cacheItem = $this->cache->getItem('version');
        if ($cacheItem->isHit()) {
            return $cacheItem->get();
        } else {
            $version = $this->getVersionFromProvider();
            $cacheItem->set($version);
            $this->cache->save($cacheItem);

            return $version;
        }
    }
public function getVersion ( ) { $ cacheItem = $ this -> cache -> getItem ( 'version' ) ; if ( $ cacheItem -> isHit ( ) ) { return $ cacheItem -> get ( ) ; } else { $ version = $ this -> getVersionFromProvider ( ) ; $ cacheItem -> set ( $ version ) ; $ this -> cache -> save ( $ cacheItem ) ; return $ version ; } }
Get the current application version

@return Version
@throws InvalidArgumentException
Get the current application version