|
@@ 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 |
|
} |
|
@@ 225-230 (lines=6) @@
|
| 222 |
|
$serialized = serialize($arguments); |
| 223 |
|
$id = $this->getAlias().'.request_matcher.'.md5($serialized).sha1($serialized); |
| 224 |
|
|
| 225 |
|
if (!$container->hasDefinition($id)) { |
| 226 |
|
$container |
| 227 |
|
->setDefinition($id, new DefinitionDecorator($this->getAlias().'.request_matcher')) |
| 228 |
|
->setArguments($arguments) |
| 229 |
|
; |
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
return new Reference($id); |
| 233 |
|
} |