]> source.dussan.org Git - nextcloud-server.git/commit
Replace `_method` requirement by {g,s}etMethods()
authorDavid Prévot <taffit@debian.org>
Sun, 19 Apr 2015 16:00:58 +0000 (12:00 -0400)
committerDavid Prévot <taffit@debian.org>
Sun, 19 Apr 2015 16:08:29 +0000 (12:08 -0400)
commit7f2f92847be98bbf3a0a5ca8567fab001bb131c1
treec1839401c289cce497eb01a0941a537974d1ac94
parentd877c1f1e12d1ac03b99e172f15804b503400139
Replace `_method` requirement by {g,s}etMethods()

Make the call compatible with future Symfony version, and avoid
E_USER_DEPRECATED as thrown by the current 2.7.0-beta1:

The "_method" requirement is deprecated since version 2.2 and will be
removed in 3.0. Use getMethods() instead. at
…/Symfony/Component/Routing/Route.php#554

The "_method" requirement is deprecated since version 2.2 and will be
removed in 3.0. Use the setMethods() method instead or the "methods"
option in the route definition. at
…/Symfony/Component/Routing/Route.php#662
lib/private/route/route.php