validpattern.xml 702 B

123456789101112131415
  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. <condition>context.getMethod() == "GET"</condition>
  10. </route>
  11. <route id="blog_show_inherited" path="/blog/{slug}" />
  12. </routes>