files = $files; $this->path = $path; } /** * Store the settings in the cache. * * @param string $env * @param array $data * * @return void */ public function store($env, array $data) { $this->files->put($this->path($env), 'files->getRequire($this->path($env)); } catch (Exception $e) { return false; } } /** * Clear the settings cache. * * Note that we're careful not to remove the .gitignore file. * * @return void */ public function clear() { $this->files->delete($this->files->allFiles($this->path)); } /** * Returns the settings cache path. * * @return string */ protected function path($env) { return "{$this->path}/{$env}.php"; } }