|
@@ 31-36 (lines=6) @@
|
| 28 |
|
|
| 29 |
|
$taggedClaimCheckerServices = $container->findTaggedServiceIds('jose.checker.claim'); |
| 30 |
|
$taggedHeaderCheckerServices = $container->findTaggedServiceIds('jose.checker.header'); |
| 31 |
|
foreach ($taggedClaimCheckerServices as $id => $tags) { |
| 32 |
|
foreach ($tags as $attributes) { |
| 33 |
|
Assertion::keyExists($attributes, 'alias', sprintf("The claim checker '%s' does not have any 'alias' attribute.", $id)); |
| 34 |
|
$definition->addMethodCall('addClaimChecker', [new Reference($id), $attributes['alias']]); |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
foreach ($taggedHeaderCheckerServices as $id => $tags) { |
| 38 |
|
foreach ($tags as $attributes) { |
| 39 |
|
Assertion::keyExists($attributes, 'alias', sprintf("The header checker '%s' does not have any 'alias' attribute.", $id)); |
|
@@ 37-42 (lines=6) @@
|
| 34 |
|
$definition->addMethodCall('addClaimChecker', [new Reference($id), $attributes['alias']]); |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
foreach ($taggedHeaderCheckerServices as $id => $tags) { |
| 38 |
|
foreach ($tags as $attributes) { |
| 39 |
|
Assertion::keyExists($attributes, 'alias', sprintf("The header checker '%s' does not have any 'alias' attribute.", $id)); |
| 40 |
|
$definition->addMethodCall('addHeaderChecker', [new Reference($id), $attributes['alias']]); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|