src/components/Configurator.php
public function getCache() : FileCache
    {
        if (!$this->cache) {
            $this->cache = Yii::createObject([
                'class'     => FileCache::className(),
                'cachePath' => Yii::getAlias($this->cachePath)
            ]);
        }
        return $this->cache;
    }
public function getCache() : FileCache
    {
        if (!$this->cache) {
            $this->cache = Yii::createObject([
                'class'     => FileCache::className(),
                'cachePath' => Yii::getAlias($this->cachePath)
            ]);
        }
        return $this->cache;
    }
public function getCache ( ) : FileCache { if ( ! $ this -> cache ) { $ this -> cache = Yii :: createObject ( [ 'class' => FileCache :: className ( ) , 'cachePath' => Yii :: getAlias ( $ this -> cachePath ) ] ) ; } return $ this -> cache ; }
Get a cache object.
@return object|FileCache
Get a cache object .