Service/VersionManager.php
public function writeVersion(Version $version)
    {
        $cacheItem = $this->cache->getItem('version');
        $cacheItem->set($version);

        $this->cache->save($cacheItem);
        $this->writer->write($version);
    }
public function writeVersion(Version $version)
    {
        $cacheItem = $this->cache->getItem('version');
        $cacheItem->set($version);

        $this->cache->save($cacheItem);
        $this->writer->write($version);
    }
public function writeVersion ( Version $ version ) { $ cacheItem = $ this -> cache -> getItem ( 'version' ) ; $ cacheItem -> set ( $ version ) ; $ this -> cache -> save ( $ cacheItem ) ; $ this -> writer -> write ( $ version ) ; }
Write a new version number to the cache and storage

@param   Version $version
@throws  InvalidArgumentException
Write a new version number to the cache and storage