diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-06-26 16:02:20 +0400 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-08-07 12:19:00 +0400 |
commit | 8417f55b0196b48ca9ab0d681c291576c8796c8f (patch) | |
tree | 7f53ba7bfbcc41c13b26e5970f43202308c005bf /lib/private/appframework | |
parent | 1ca1e1d4d175fbd8750323112050456bf2a8fdfb (diff) |
dont strip the s from the resource
Diffstat (limited to 'lib/private/appframework')
-rw-r--r-- | lib/private/appframework/routing/routeconfig.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/appframework/routing/routeconfig.php b/lib/private/appframework/routing/routeconfig.php index 91ea7778d08..634bc888bdb 100644 --- a/lib/private/appframework/routing/routeconfig.php +++ b/lib/private/appframework/routing/routeconfig.php @@ -88,7 +88,7 @@ class RouteConfig { ->method($verb) ->action($handler); - // optionally register requirements for route. This is used to + // optionally register requirements for route. This is used to // tell the route parser how url parameters should be matched if(array_key_exists('requirements', $simpleRoute)) { $router->requirements($simpleRoute['requirements']); @@ -174,7 +174,7 @@ class RouteConfig { * @return string */ private function buildResourceId($resource) { - return '{'.$this->underScoreToCamelCase(rtrim($resource, 's')).'Id}'; + return '{' . $this->underScoreToCamelCase($resource) . 'Id}'; } /** |