@@ 79-97 (lines=19) @@ | ||
76 | * |
|
77 | * @return ArrayNodeDefinition |
|
78 | */ |
|
79 | private function addSessionSupportSection() |
|
80 | { |
|
81 | $tree = new TreeBuilder(); |
|
82 | $node = $tree->root('session'); |
|
83 | ||
84 | $node |
|
85 | ->canBeEnabled() |
|
86 | ->addDefaultsIfNotSet() |
|
87 | ->children() |
|
88 | ->scalarNode('service_id')->isRequired()->end() |
|
89 | ->booleanNode('use_tagging')->defaultTrue()->end() |
|
90 | ->scalarNode('prefix')->defaultValue('session_')->end() |
|
91 | ->scalarNode('ttl')->end() |
|
92 | ->end(); |
|
93 | ||
94 | $this->normalizeEnabled($node); |
|
95 | ||
96 | return $node; |
|
97 | } |
|
98 | ||
99 | /** |
|
100 | * Configure the "cache.serializer" section. |
|
@@ 104-121 (lines=18) @@ | ||
101 | * |
|
102 | * @return ArrayNodeDefinition |
|
103 | */ |
|
104 | private function addSerializerSection() |
|
105 | { |
|
106 | $tree = new TreeBuilder(); |
|
107 | $node = $tree->root('serializer'); |
|
108 | ||
109 | $node |
|
110 | ->canBeEnabled() |
|
111 | ->addDefaultsIfNotSet() |
|
112 | ->children() |
|
113 | ->scalarNode('service_id')->isRequired()->end() |
|
114 | ->booleanNode('use_tagging')->defaultTrue()->end() |
|
115 | ->scalarNode('prefix')->defaultValue('')->end() |
|
116 | ->end(); |
|
117 | ||
118 | $this->normalizeEnabled($node); |
|
119 | ||
120 | return $node; |
|
121 | } |
|
122 | ||
123 | /** |
|
124 | * Configure the "cache.serializer" section. |
|
@@ 128-145 (lines=18) @@ | ||
125 | * |
|
126 | * @return ArrayNodeDefinition |
|
127 | */ |
|
128 | private function addValidationSection() |
|
129 | { |
|
130 | $tree = new TreeBuilder(); |
|
131 | $node = $tree->root('validation'); |
|
132 | ||
133 | $node |
|
134 | ->canBeEnabled() |
|
135 | ->addDefaultsIfNotSet() |
|
136 | ->children() |
|
137 | ->scalarNode('service_id')->isRequired()->end() |
|
138 | ->booleanNode('use_tagging')->defaultTrue()->end() |
|
139 | ->scalarNode('prefix')->defaultValue('')->end() |
|
140 | ->end(); |
|
141 | ||
142 | $this->normalizeEnabled($node); |
|
143 | ||
144 | return $node; |
|
145 | } |
|
146 | ||
147 | /** |
|
148 | * Configure the "cache.annotation" section. |
|
@@ 152-169 (lines=18) @@ | ||
149 | * |
|
150 | * @return ArrayNodeDefinition |
|
151 | */ |
|
152 | private function addAnnotationSection() |
|
153 | { |
|
154 | $tree = new TreeBuilder(); |
|
155 | $node = $tree->root('annotation'); |
|
156 | ||
157 | $node |
|
158 | ->canBeEnabled() |
|
159 | ->addDefaultsIfNotSet() |
|
160 | ->children() |
|
161 | ->scalarNode('service_id')->isRequired()->end() |
|
162 | ->booleanNode('use_tagging')->defaultTrue()->end() |
|
163 | ->scalarNode('prefix')->defaultValue('')->end() |
|
164 | ->end(); |
|
165 | ||
166 | $this->normalizeEnabled($node); |
|
167 | ||
168 | return $node; |
|
169 | } |
|
170 | ||
171 | /** |
|
172 | * @return ArrayNodeDefinition |
|
@@ 256-278 (lines=23) @@ | ||
253 | * |
|
254 | * @return ArrayNodeDefinition |
|
255 | */ |
|
256 | private function addRouterSection() |
|
257 | { |
|
258 | $tree = new TreeBuilder(); |
|
259 | $node = $tree->root('router'); |
|
260 | ||
261 | $node |
|
262 | ->canBeEnabled() |
|
263 | ->addDefaultsIfNotSet() |
|
264 | ->children() |
|
265 | ->integerNode('ttl') |
|
266 | ->defaultValue(604800) |
|
267 | ->end() |
|
268 | ->scalarNode('service_id') |
|
269 | ->isRequired() |
|
270 | ->end() |
|
271 | ->booleanNode('use_tagging')->defaultTrue()->end() |
|
272 | ->scalarNode('prefix')->defaultValue('')->end() |
|
273 | ->end(); |
|
274 | ||
275 | $this->normalizeEnabled($node); |
|
276 | ||
277 | return $node; |
|
278 | } |
|
279 | ||
280 | /** |
|
281 | * @return ArrayNodeDefinition |