@@ 188-194 (lines=7) @@ | ||
185 | $serialized = serialize($arguments); |
|
186 | $id = $this->getAlias().'.rule_matcher.'.md5($serialized).sha1($serialized); |
|
187 | ||
188 | if (!$container->hasDefinition($id)) { |
|
189 | $container |
|
190 | ->setDefinition($id, new DefinitionDecorator($this->getAlias().'.rule_matcher')) |
|
191 | ->replaceArgument(0, $requestMatcher) |
|
192 | ->replaceArgument(1, $extraCriteria) |
|
193 | ; |
|
194 | } |
|
195 | ||
196 | return new Reference($id); |
|
197 | } |
|
@@ 238-243 (lines=6) @@ | ||
235 | $serialized = serialize($arguments); |
|
236 | $id = $this->getAlias().'.request_matcher.'.md5($serialized).sha1($serialized); |
|
237 | ||
238 | if (!$container->hasDefinition($id)) { |
|
239 | $container |
|
240 | ->setDefinition($id, new DefinitionDecorator($this->getAlias().'.request_matcher')) |
|
241 | ->setArguments($arguments) |
|
242 | ; |
|
243 | } |
|
244 | ||
245 | return new Reference($id); |
|
246 | } |