validpattern.yml 592 B

1234567891011121314151617
  1. blog_show:
  2. path: /blog/{slug}
  3. defaults: { _controller: "MyBundle:Blog:show" }
  4. host: "{locale}.example.com"
  5. requirements: { 'locale': '\w+' }
  6. methods: ['GET','POST','put','OpTiOnS']
  7. schemes: ['https']
  8. options:
  9. compiler_class: RouteCompiler
  10. blog_show_legacy:
  11. pattern: /blog/{slug}
  12. defaults: { _controller: "MyBundle:Blog:show" }
  13. host: "{locale}.example.com"
  14. requirements: { '_method': 'GET|POST|put|OpTiOnS', _scheme: https, 'locale': '\w+' }
  15. options:
  16. compiler_class: RouteCompiler