getRouter(static::$serverName); return $router->{$name}(...$arguments); } public static function addServer(string $serverName, callable $callback) { static::$serverName = $serverName; $callback(); static::$serverName = 'http'; } public static function init(DispatcherFactory $factory) { static::$factory = $factory; } }