namespaceprefix.xml 830 B

1234567891011121314151617
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <r:routes xmlns:r="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. <r:route id="blog_show" path="/blog/{slug}" host="{_locale}.example.com">
  6. <r:default key="_controller">MyBundle:Blog:show</r:default>
  7. <requirement xmlns="http://symfony.com/schema/routing" key="slug">\w+</requirement>
  8. <r2:requirement xmlns:r2="http://symfony.com/schema/routing" key="_locale">en|fr|de</r2:requirement>
  9. <r:option key="compiler_class">RouteCompiler</r:option>
  10. <r:default key="page">
  11. <r3:int xmlns:r3="http://symfony.com/schema/routing">1</r3:int>
  12. </r:default>
  13. </r:route>
  14. </r:routes>