validpattern.xml 1.0 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <routes xmlns="http://symfony.com/schema/routing"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
  5. <route id="blog_show" path="/blog/{slug}" host="{locale}.example.com" methods="GET|POST put,OpTiOnS" schemes="hTTps">
  6. <default key="_controller">MyBundle:Blog:show</default>
  7. <requirement key="locale">\w+</requirement>
  8. <option key="compiler_class">RouteCompiler</option>
  9. </route>
  10. <route id="blog_show_legacy" pattern="/blog/{slug}" host="{locale}.example.com">
  11. <default key="_controller">MyBundle:Blog:show</default>
  12. <default key="slug" xsi:nil="true" />
  13. <requirement key="_method">GET|POST|put|OpTiOnS</requirement>
  14. <requirement key="_scheme">hTTps</requirement>
  15. <requirement key="locale">\w+</requirement>
  16. <option key="compiler_class">RouteCompiler</option>
  17. </route>
  18. </routes>