Вход Регистрация
Файл: symfony-2.7/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_collection_1.xml
Строк: 48
<?xml version="1.0" encoding="UTF-8"?>
<routes>
  <route name="route_1" class="SymfonyComponentRoutingRoute">
    <path regex="#^/hello(?:/(?P&lt;name&gt;[a-z]+))?$#s">/hello/{name}</path>
    <host regex="#^localhost$#s">localhost</host>
    <scheme>http</scheme>
    <scheme>https</scheme>
    <method>GET</method>
    <method>HEAD</method>
    <defaults>
      <default key="name">Joseph</default>
    </defaults>
    <requirements>
      <requirement key="name">[a-z]+</requirement>
    </requirements>
    <options>
      <option key="compiler_class">SymfonyComponentRoutingRouteCompiler</option>
      <option key="opt1">val1</option>
      <option key="opt2">val2</option>
    </options>
  </route>
  <route name="route_2" class="SymfonyComponentRoutingRoute">
    <path regex="#^/name/add$#s">/name/add</path>
    <host regex="#^localhost$#s">localhost</host>
    <scheme>http</scheme>
    <scheme>https</scheme>
    <method>PUT</method>
    <method>POST</method>
    <options>
      <option key="compiler_class">SymfonyComponentRoutingRouteCompiler</option>
      <option key="opt1">val1</option>
      <option key="opt2">val2</option>
    </options>
  </route>
</routes>
Онлайн: 2
Реклама