You are here

public function DumperCollection::setAll in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Matcher/Dumper/DumperCollection.php \Symfony\Component\Routing\Matcher\Dumper\DumperCollection::setAll()

Sets children.

Parameters

array $children The children:

1 call to DumperCollection::setAll()
DumperPrefixCollection::mergeSlashNodes in vendor/symfony/routing/Matcher/Dumper/DumperPrefixCollection.php
Merges nodes whose prefix ends with a slash.

File

vendor/symfony/routing/Matcher/Dumper/DumperCollection.php, line 66

Class

DumperCollection
Collection of routes.

Namespace

Symfony\Component\Routing\Matcher\Dumper

Code

public function setAll(array $children) {
  foreach ($children as $child) {
    if ($child instanceof self) {
      $child
        ->setParent($this);
    }
  }
  $this->children = $children;
}