]> source.dussan.org Git - nextcloud-server.git/commitdiff
Deprecate registerRoutes 21713/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 6 Jul 2020 13:15:20 +0000 (15:15 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 6 Jul 2020 13:15:20 +0000 (15:15 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/public/AppFramework/App.php

index 016ef5a0318c8333eb749fa8cdf12726cb9edec8..2f55fd451406340121cc50019438a588fcd3b937 100644 (file)
@@ -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);