public function __construct($bus = []) { $this->bus = []; foreach ($bus as $name => $router) { $this->setBus($name, $router); } }