From 74317568ff498c1dcc97f8677a43f56dab3371be Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 23 May 2016 17:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Storage/AbstractStorage.php | 23 +++++++++++ src/Storage/Storage.php | 70 ++++++++++++-------------------- src/Storage/StorageInterface.php | 52 ++++++++---------------- 3 files changed, 67 insertions(+), 78 deletions(-) create mode 100644 src/Storage/AbstractStorage.php diff --git a/src/Storage/AbstractStorage.php b/src/Storage/AbstractStorage.php new file mode 100644 index 0000000..f40ea1e --- /dev/null +++ b/src/Storage/AbstractStorage.php @@ -0,0 +1,23 @@ +adapter = $adapter; + } +} \ No newline at end of file diff --git a/src/Storage/Storage.php b/src/Storage/Storage.php index a24f584..a00dfdf 100644 --- a/src/Storage/Storage.php +++ b/src/Storage/Storage.php @@ -1,45 +1,27 @@ -adapter->find($id); + } + + public function store(Request $request) + { + $this->adapter->store($request); + } } \ No newline at end of file diff --git a/src/Storage/StorageInterface.php b/src/Storage/StorageInterface.php index e844d86..3040dc3 100644 --- a/src/Storage/StorageInterface.php +++ b/src/Storage/StorageInterface.php @@ -1,35 +1,19 @@ -