Merge pull request #21713 from nextcloud/td/deprecate/register_rotues

Deprecate registerRoutes
This commit is contained in:
Roeland Jago Douma 2020-07-06 20:55:59 +02:00 committed by GitHub
commit d8bd6cfe6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);