It still works, but setting as "major" since this is a pretty common API:

v0.4 output: http://cgit.drupalcode.org/pants/tree/pants.routing.yml?id=b1b27b192e02d...

pants.change:
  path: '/pants/change/{account}'
  defaults:
    _title: 'Change pants'
    _content: 'Drupal\pants\Controller\DefaultController::change'
  requirements:
    _custom_access: 'Drupal\pants\Controller\DefaultController::changeAccess'
pants.settings:
  path: /admin/config/people/pants
  defaults:
    _title: Pants
    _form: Drupal\pants\Form\PantsSettings
  requirements:
    _permission: 'administer pants'

master output:

pants.change:
    path: '/pants/change/{account}'
    defaults: { _title: 'Change pants', _content: '\Drupal\pants\Controller\DefaultController::pants_change' }
    requirements: { _custom_access: '\Drupal\pants\Controller\DefaultController::pants_change_access' }
pants.settings:
    path: /admin/config/people/pants
    defaults: { _title: Pants, _form: \Drupal\pants\Form\PantsSettings }
    requirements: { _permission: 'administer pants' }

v0.4 was correct.

Comments

phenaproxima’s picture

Status: Active » Needs review

Low-hangin' fruit :) Fixed.

Best way to test this without errors from other plugins, BTW, is drush dmu-upgrade pants --only=Routing

  • phenaproxima committed 33c7fd0 on master
    Issue #2351043: YAML no longer being written with array indentation
    
webchick’s picture

Status: Needs review » Fixed

No idea why that fixes it, but glad it does. :D

Status: Fixed » Closed (fixed)

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