* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\storage; /** * @internal Experimental */ class storage { protected $adapter; public function __construct($factory, $storage_name) { $this->adapter = $factory->get($storage_name); } public function put_contents($path, $content) { $this->adapter->put_contents($path, $content); } public function get_contents($path) { return $this->adapter->get_contents($path); } public function exists($path) { return $this->adapter->exists($path); } public function delete($path) { $this->adapter->delete($path); } public function rename($path_orig, $path_dest) { $this->adapter->rename($path_orig, $path_dest); } public function copy($path_orig, $path_dest) { $this->adapter->copy($path_orig, $path_dest); } public function create_dir($path) { $this->adapter->create_dir($path); } }