/** * Creates server object. * * @param array $arServer */ public function __construct(array $arServer) { if (isset($arServer["DOCUMENT_ROOT"])) { $arServer["DOCUMENT_ROOT"] = rtrim($arServer["DOCUMENT_ROOT"], "/\\"); } parent::__construct($arServer); }
/** * Creates env object. * * @param array $arEnv */ public function __construct(array $arEnv) { parent::__construct($arEnv); }
public function __construct(Server $server, array $request) { parent::__construct($request); $this->server = $server; }