-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<xsd:schema xmlns="http://symfony.com/schema/routing" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
targetNamespace="http://symfony.com/schema/routing" | ||
elementFormDefault="qualified"> | ||
|
||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Symfony XML Routing Schema, version 1.0 | ||
Authors: Fabien Potencier, Tobias Schultze | ||
This scheme defines the elements and attributes that can be used to define | ||
routes. A route maps an HTTP request to a set of configuration variables. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
|
||
<xsd:element name="routes" type="routes" /> | ||
|
||
<xsd:complexType name="routes"> | ||
<xsd:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:element name="import" type="import" /> | ||
<xsd:element name="route" type="route" /> | ||
</xsd:choice> | ||
</xsd:complexType> | ||
|
||
<xsd:group name="configs"> | ||
<xsd:choice> | ||
<xsd:element name="default" nillable="true" type="element" /> | ||
<xsd:element name="requirement" type="element" /> | ||
<xsd:element name="option" type="element" /> | ||
</xsd:choice> | ||
</xsd:group> | ||
|
||
<xsd:complexType name="route"> | ||
<xsd:group ref="configs" minOccurs="0" maxOccurs="unbounded" /> | ||
|
||
<xsd:attribute name="id" type="xsd:string" use="required" /> | ||
<xsd:attribute name="path" type="xsd:string" /> | ||
<xsd:attribute name="pattern" type="xsd:string" /> | ||
<xsd:attribute name="host" type="xsd:string" /> | ||
<xsd:attribute name="schemes" type="xsd:string" /> | ||
<xsd:attribute name="methods" type="xsd:string" /> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="import"> | ||
<xsd:group ref="configs" minOccurs="0" maxOccurs="unbounded" /> | ||
|
||
<xsd:attribute name="resource" type="xsd:string" use="required" /> | ||
<xsd:attribute name="type" type="xsd:string" /> | ||
<xsd:attribute name="prefix" type="xsd:string" /> | ||
<xsd:attribute name="host" type="xsd:string" /> | ||
<xsd:attribute name="schemes" type="xsd:string" /> | ||
<xsd:attribute name="methods" type="xsd:string" /> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="element"> | ||
<xsd:simpleContent> | ||
<xsd:extension base="xsd:string"> | ||
<xsd:attribute name="key" type="xsd:string" use="required" /> | ||
</xsd:extension> | ||
</xsd:simpleContent> | ||
</xsd:complexType> | ||
</xsd:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters