|
@@ 184-190 (lines=7) @@
|
| 181 |
|
$serialized = serialize($arguments); |
| 182 |
|
$id = $this->getAlias().'.rule_matcher.'.md5($serialized).sha1($serialized); |
| 183 |
|
|
| 184 |
|
if (!$container->hasDefinition($id)) { |
| 185 |
|
$container |
| 186 |
|
->setDefinition($id, new DefinitionDecorator($this->getAlias().'.rule_matcher')) |
| 187 |
|
->replaceArgument(0, $requestMatcher) |
| 188 |
|
->replaceArgument(1, $extraCriteria) |
| 189 |
|
; |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
return new Reference($id); |
| 193 |
|
} |
|
@@ 234-239 (lines=6) @@
|
| 231 |
|
$serialized = serialize($arguments); |
| 232 |
|
$id = $this->getAlias().'.request_matcher.'.md5($serialized).sha1($serialized); |
| 233 |
|
|
| 234 |
|
if (!$container->hasDefinition($id)) { |
| 235 |
|
$container |
| 236 |
|
->setDefinition($id, new DefinitionDecorator($this->getAlias().'.request_matcher')) |
| 237 |
|
->setArguments($arguments) |
| 238 |
|
; |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
return new Reference($id); |
| 242 |
|
} |