From: Roeland Jago Douma Date: Mon, 6 Jul 2020 13:15:20 +0000 (+0200) Subject: Deprecate registerRoutes X-Git-Tag: v20.0.0beta1~306^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F21713%2Fhead;p=nextcloud-server.git Deprecate registerRoutes Signed-off-by: Roeland Jago Douma --- diff --git a/lib/public/AppFramework/App.php b/lib/public/AppFramework/App.php index 016ef5a0318..2f55fd45140 100644 --- a/lib/public/AppFramework/App.php +++ b/lib/public/AppFramework/App.php @@ -143,6 +143,7 @@ class App { * @param array $routes * @since 6.0.0 * @suppress PhanAccessMethodInternal + * @deprecated 20.0.0 Just return an array from your routes.php */ public function registerRoutes(IRouter $router, array $routes) { $routeConfig = new RouteConfig($this->container, $router, $routes);