protected loadClosures ( ) : void | ||
return | void |
protected function loadClosures()
{
foreach ($this->closures as $closure) {
$instance = $closure();
if (is_array($instance) || $instance instanceof Traversable) {
$this->addAll($instance);
} else {
$this->add($instance);
}
}
}