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