summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Cornutt <enygma@phpdeveloper.org>2015-01-19 06:41:36 -0600
committerChris Cornutt <enygma@phpdeveloper.org>2015-01-19 06:41:36 -0600
commitddd54a39b1b10cebae49b084652dd0c2d7d499ab (patch)
treec38171dfc583259cb6af6ed344b6200aa4ab8bbf
parenta7e38e180ada2752016ebc59f043df45cb540cfe (diff)
downloadgatekeeper-ddd54a39b1b10cebae49b084652dd0c2d7d499ab.zip
gatekeeper-ddd54a39b1b10cebae49b084652dd0c2d7d499ab.tar.gz
gatekeeper-ddd54a39b1b10cebae49b084652dd0c2d7d499ab.tar.bz2
adding a getter for the main datasource1.8
-rw-r--r--src/Psecio/Gatekeeper/Gatekeeper.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Psecio/Gatekeeper/Gatekeeper.php b/src/Psecio/Gatekeeper/Gatekeeper.php
index 85c78fa..c7fd202 100644
--- a/src/Psecio/Gatekeeper/Gatekeeper.php
+++ b/src/Psecio/Gatekeeper/Gatekeeper.php
@@ -75,6 +75,16 @@ class Gatekeeper
}
/**
+ * Get the current datasource
+ *
+ * @return \Psecio\Gatekeeper\DataSource instance
+ */
+ public static function getDatasource()
+ {
+ return self::$datasource;
+ }
+
+ /**
* Load the variables using the .env handling
*
* @param string $envPath Path to the .env file