summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-11-27 01:55:52 -0800
committerMorris Jobke <morris.jobke@gmail.com>2013-11-27 01:55:52 -0800
commita81909097c57c759274290a5a5fac908b909d3ae (patch)
tree371da5ff23eb3126ad6a7952294d7845dfb9717a /lib/private
parent34704eded68c8b8bbd9d19364875d6abc1827433 (diff)
parent7755e69af0fea0925afacd7b038b792b9fb0e3e1 (diff)
downloadnextcloud-server-a81909097c57c759274290a5a5fac908b909d3ae.tar.gz
nextcloud-server-a81909097c57c759274290a5a5fac908b909d3ae.zip
Merge pull request #6027 from owncloud/public-api-restful-routing-oc6
fix appframework routing
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/appframework/app.php6
-rw-r--r--lib/private/appframework/routing/routeactionhandler.php2
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/appframework/app.php b/lib/private/appframework/app.php
index 6d3effbf1fa..b835188661a 100644
--- a/lib/private/appframework/app.php
+++ b/lib/private/appframework/app.php
@@ -43,8 +43,12 @@ class App {
* stored in the DI container
* @param string $methodName the method that you want to call
* @param DIContainer $container an instance of a pimple container.
+ * @param array $urlParams list of URL parameters (optional)
*/
- public static function main($controllerName, $methodName, IAppContainer $container) {
+ public static function main($controllerName, $methodName, DIContainer $container, array $urlParams = null) {
+ if (!is_null($urlParams)) {
+ $container['urlParams'] = $urlParams;
+ }
$controller = $container[$controllerName];
// initialize the dispatcher and run all the middleware before the controller
diff --git a/lib/private/appframework/routing/routeactionhandler.php b/lib/private/appframework/routing/routeactionhandler.php
index 7fb56f14eab..2b9dc38dc43 100644
--- a/lib/private/appframework/routing/routeactionhandler.php
+++ b/lib/private/appframework/routing/routeactionhandler.php
@@ -37,6 +37,6 @@ class RouteActionHandler {
}
public function __invoke($params) {
- App::main($this->controllerName, $this->actionName, $params, $this->container);
+ App::main($this->controllerName, $this->actionName, $this->container, $params);
}
}