diff options
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/Http/Dispatcher.php | 4 | ||||
-rw-r--r-- | lib/private/AppFramework/Routing/RouteConfig.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php index 828864f1e02..9ec69558e88 100644 --- a/lib/private/AppFramework/Http/Dispatcher.php +++ b/lib/private/AppFramework/Http/Dispatcher.php @@ -133,7 +133,7 @@ class Dispatcher { if ($numBuilt > 50) { $this->logger->debug('Controller {class}::{method} created {count} QueryBuilder objects, please check if they are created inside a loop by accident.' , [ - 'class' => (string) get_class($controller), + 'class' => get_class($controller), 'method' => $methodName, 'count' => $numBuilt, ]); @@ -141,7 +141,7 @@ class Dispatcher { if ($numExecuted > 100) { $this->logger->warning('Controller {class}::{method} executed {count} queries.' , [ - 'class' => (string) get_class($controller), + 'class' => get_class($controller), 'method' => $methodName, 'count' => $numExecuted, ]); diff --git a/lib/private/AppFramework/Routing/RouteConfig.php b/lib/private/AppFramework/Routing/RouteConfig.php index b382e7eb4b0..c522d3436ca 100644 --- a/lib/private/AppFramework/Routing/RouteConfig.php +++ b/lib/private/AppFramework/Routing/RouteConfig.php @@ -231,7 +231,7 @@ class RouteConfig { $controllerName = $this->buildControllerName($controller); $actionName = $this->buildActionName($method); - $routeName = $routeNamePrefix . $this->appName . '.' . strtolower($resource) . '.' . strtolower($method); + $routeName = $routeNamePrefix . $this->appName . '.' . strtolower($resource) . '.' . $method; $route = $this->router->create($routeName, $url) ->method($verb); |