public function makeCache(Vars $vars)
    {
        if ($this->provide) {
            $cache_folder = sprintf("%s/vars", $this->path);
            if (!file_exists($cache_folder)) {
                mkdir($cache_folder, 0777, true);
            }

            $cache_file = sprintf('%s/%s.php', $cache_folder, $this->name);
            file_put_contents($cache_file, serialize($vars));
        }
    }
public function makeCache(Vars $vars)
    {
        if ($this->provide) {
            $cache_folder = sprintf("%s/vars", $this->path);
            if (!file_exists($cache_folder)) {
                mkdir($cache_folder, 0777, true);
            }

            $cache_file = sprintf('%s/%s.php', $cache_folder, $this->name);
            file_put_contents($cache_file, serialize($vars));
        }
    }
public function makeCache ( Vars $ vars ) { if ( $ this -> provide ) { $ cache_folder = sprintf ( "%s/vars" , $ this -> path ) ; if ( ! file_exists ( $ cache_folder ) ) { mkdir ( $ cache_folder , 0777 , true ) ; } $ cache_file = sprintf ( '%s/%s.php' , $ cache_folder , $ this -> name ) ; file_put_contents ( $ cache_file , serialize ( $ vars ) ) ; } }
Transfer the contents of the parent Vars object into a file for cache

@param \M1\Vars\Vars $vars Parent vars object

@codeCoverageIgnore
Transfer the contents of the parent Vars object into a file for cache