This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ public function getNamespace()
48
48
return 'http://cmf.symfony.com/schema/dic/ ' .$ this ->getAlias ();
49
49
}
50
50
51
+ public function getXsdValidationBasePath ()
52
+ {
53
+ return __DIR__ .'/../Resources/config/schema ' ;
54
+ }
55
+
51
56
/**
52
57
* Automatically include native enhancers.
53
58
*/
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <xsd : schema xmlns =" http://cmf.symfony.com/schema/dic/resource-rest"
3
+ xmlns : xsd =" http://www.w3.org/2001/XMLSchema"
4
+ targetNamespace =" http://cmf.symfony.com/schema/dic/resource-rest"
5
+ elementFormDefault =" qualified" >
6
+
7
+ <xsd : element name =" config" type =" config" />
8
+
9
+ <xsd : complexType name =" config" >
10
+ <xsd : sequence >
11
+ <xsd : element name =" payload-alias" type =" payload_alias" minOccurs =" 0" />
12
+ <xsd : element name =" enhance" type =" enhance" minOccurs =" 0" />
13
+ </xsd : sequence >
14
+
15
+ <xsd : attribute name =" max-depth" type =" xsd:integer" default =" 2" />
16
+ </xsd : complexType >
17
+
18
+ <xsd : complexType name =" payload_alias" >
19
+ <xsd : attribute name =" repository" type =" xsd:string" />
20
+ <xsd : attribute name =" type" type =" xsd:string" />
21
+ </xsd : complexType >
22
+
23
+ <xsd : complexType name =" enhance" >
24
+ <xsd : attribute name =" repository" type =" xsd:string" use =" required" />
25
+ <xsd : attribute name =" enhancer" type =" xsd:string" use =" required" />
26
+ </xsd : complexType >
27
+
28
+ </xsd : schema >
29
+
You can’t perform that action at this time.
0 commit comments