diff options
author | Chris Cornutt <enygma@phpdeveloper.org> | 2015-01-19 06:41:36 -0600 |
---|---|---|
committer | Chris Cornutt <enygma@phpdeveloper.org> | 2015-01-19 06:41:36 -0600 |
commit | ddd54a39b1b10cebae49b084652dd0c2d7d499ab (patch) | |
tree | c38171dfc583259cb6af6ed344b6200aa4ab8bbf | |
parent | a7e38e180ada2752016ebc59f043df45cb540cfe (diff) | |
download | gatekeeper-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.php | 10 |
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 |