In oauth.routing.yml file, some route's path and class namespace are not start with '/' and '\'.

As per drupal standard, path defined in routing.yml should start with '/' and namespace should start with '\'.

Example :

path: 'user/{user}/oauth/consumer'

should be - path: '/user/{user}/oauth/consumer'

and _content: 'Drupal\oauth\Controller\OAuthController::consumers'

should be _content: '\Drupal\oauth\Controller\OAuthController::consumers'.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joshi.rohit100’s picture

Status: Active » Needs review
FileSize
1.28 KB
Blackice2999’s picture

Hi,

based upon #2377967: Remove bc layer for _content _controller change it should be also named _controller instead of _content...

fgm’s picture

Rerolled on today's core HEAD. But this is not testable until #2331155: Unable to install, buildForm in Form classes incompatible with FormStateInterface::buildForm gets in.

  • juampynr committed e4a96b1 on 8.x-1.x
    Issue #2518476 by joshi.rohit100, Blackice2999, fgm: Route name and...
juampynr’s picture

Status: Needs review » Fixed

Commited. Thanks!

I have fixed part of what @fgm mentions at #2331155: Unable to install, buildForm in Form classes incompatible with FormStateInterface::buildForm but I will double check with the patch there to verify that I have made all the changes.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.