validpattern.xml 787 B

123456789101112131415161718
  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 https://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. <default key="_stateless">
  8. <bool>true</bool>
  9. </default>
  10. <requirement key="locale">\w+</requirement>
  11. <option key="compiler_class">RouteCompiler</option>
  12. <condition>context.getMethod() == "GET"</condition>
  13. </route>
  14. <route id="blog_show_inherited" path="/blog/{slug}" />
  15. </routes>