@@ 178-184 (lines=7) @@ | ||
175 | $serialized = serialize($arguments); |
|
176 | $id = $this->getAlias().'.rule_matcher.'.md5($serialized).sha1($serialized); |
|
177 | ||
178 | if (!$container->hasDefinition($id)) { |
|
179 | $container |
|
180 | ->setDefinition($id, new DefinitionDecorator($this->getAlias().'.rule_matcher')) |
|
181 | ->replaceArgument(0, $requestMatcher) |
|
182 | ->replaceArgument(1, $extraCriteria) |
|
183 | ; |
|
184 | } |
|
185 | ||
186 | return new Reference($id); |
|
187 | } |
|
@@ 224-229 (lines=6) @@ | ||
221 | $serialized = serialize($arguments); |
|
222 | $id = $this->getAlias().'.request_matcher.'.md5($serialized).sha1($serialized); |
|
223 | ||
224 | if (!$container->hasDefinition($id)) { |
|
225 | $container |
|
226 | ->setDefinition($id, new DefinitionDecorator($this->getAlias().'.request_matcher')) |
|
227 | ->setArguments($arguments) |
|
228 | ; |
|
229 | } |
|
230 | ||
231 | return new Reference($id); |
|
232 | } |