From 47d78931701cb53a02ae51b7b758af9dbdf93e6c Mon Sep 17 00:00:00 2001 From: Maksim Kotlyar Date: Mon, 13 Mar 2017 21:16:17 +0200 Subject: [PATCH] add a method to get all storages. --- src/Registry.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Registry.php b/src/Registry.php index a85183c..fe9c625 100644 --- a/src/Registry.php +++ b/src/Registry.php @@ -23,6 +23,14 @@ public function __construct(array $storages, array $repositories) $this->repositories = $repositories; } + /** + * @return Storage[]|array + */ + public function getStorages() + { + return $this->storages; + } + /** * @param object|string $modelOrClass *