diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-07-01 16:45:00 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-07-01 16:45:00 +0200 |
commit | 5a588333b236519aed449a309be818d0686edb3a (patch) | |
tree | 5df197e9501bf79b1abcc7253987df53c5746ba3 /lib/private/route | |
parent | dd20b9f6726db4ddc2d5905705e01544f4f4fd08 (diff) | |
download | nextcloud-server-5a588333b236519aed449a309be818d0686edb3a.tar.gz nextcloud-server-5a588333b236519aed449a309be818d0686edb3a.zip |
introduce and use getCurrentConnection()
Diffstat (limited to 'lib/private/route')
-rw-r--r-- | lib/private/route/router.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/route/router.php b/lib/private/route/router.php index f3a4bc5f3e4..9c973d7ac6a 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -26,6 +26,11 @@ class Router implements IRouter { protected $collection = null; /** + * @var string + */ + protected $collectionName = null; + + /** * @var \Symfony\Component\Routing\RouteCollection */ protected $root = null; @@ -160,8 +165,19 @@ class Router implements IRouter { */ public function useCollection($name) { $this->collection = $this->getCollection($name); + $this->collectionName = $name; + } + + /** + * returns the current collection name in use for adding routes + * + * @return string the collection name + */ + public function getCurrentCollection() { + return $this->collectionName; } + /** * Create a \OC\Route\Route. * |