legacy_validpattern.xml 775 B

12345678910111213141516
  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_legacy" pattern="/blog/{slug}" host="{locale}.example.com">
  6. <default key="_controller">MyBundle:Blog:show</default>
  7. <default key="slug" xsi:nil="true" />
  8. <requirement key="_method">GET|POST|put|OpTiOnS</requirement>
  9. <requirement key="_scheme">hTTps</requirement>
  10. <requirement key="locale">\w+</requirement>
  11. <option key="compiler_class">RouteCompiler</option>
  12. <condition>context.getMethod() == "GET"</condition>
  13. </route>
  14. </routes>