| @@ 543-556 (lines=14) @@ | ||
| 540 | /** |
|
| 541 | * {@inheritdoc} |
|
| 542 | */ |
|
| 543 | public function getRootBindingDescriptors() |
|
| 544 | { |
|
| 545 | $this->assertModulesLoaded(); |
|
| 546 | ||
| 547 | $bindings = array(); |
|
| 548 | ||
| 549 | foreach ($this->bindingDescriptors->toArray() as $binding) { |
|
| 550 | if ($binding->getContainingModule() instanceof RootModule) { |
|
| 551 | $bindings[] = $binding; |
|
| 552 | } |
|
| 553 | } |
|
| 554 | ||
| 555 | return $bindings; |
|
| 556 | } |
|
| 557 | ||
| 558 | /** |
|
| 559 | * {@inheritdoc} |
|
| @@ 596-609 (lines=14) @@ | ||
| 593 | /** |
|
| 594 | * {@inheritdoc} |
|
| 595 | */ |
|
| 596 | public function findBindingDescriptors(Expression $expr) |
|
| 597 | { |
|
| 598 | $this->assertModulesLoaded(); |
|
| 599 | ||
| 600 | $descriptors = array(); |
|
| 601 | ||
| 602 | foreach ($this->bindingDescriptors->toArray() as $descriptor) { |
|
| 603 | if ($expr->evaluate($descriptor)) { |
|
| 604 | $descriptors[] = $descriptor; |
|
| 605 | } |
|
| 606 | } |
|
| 607 | ||
| 608 | return $descriptors; |
|
| 609 | } |
|
| 610 | ||
| 611 | /** |
|
| 612 | * {@inheritdoc} |
|