Hi Rob, In UriInterface there is this method: public function withUserInfo($user, $password = null): UriInterface;
https://github.com/php-fig/http-message/blob/master/src/UriInterface.php#L207 I guess this is what you want. Regards Alex On Mon, Mar 18, 2019 at 3:37 PM Robert Crous <[email protected]> wrote: > Hi all, > > I understand that `Uri(some_url)->userInfo` returns the result of > `parse_url(some_url)[user]` (and then optionally append ':' . [pass]). > > My question is: why are there no setters and getters available for `user` > and `pass`? > > I can't see any reason why having getters/setters available for user + > pass would disrupt anything and it seems fairly odd that the decision was > made to replace this with `getUserInfo` and `withUserInfo`. > > But is there a specific reason why this was done? > > And if not- is there any way this can be added to the spec for the URI > interface? > > Kind Regards, > > Rob > > -- > You received this message because you are subscribed to the Google Groups > "PHP Framework Interoperability Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/php-fig/b45e38a2-222c-4b3a-afb6-bd2f130547f7%40googlegroups.com > <https://groups.google.com/d/msgid/php-fig/b45e38a2-222c-4b3a-afb6-bd2f130547f7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAAwdEzD%2B27j25hv%2B1bPWaLXiX37rvgFUkAVQV-sdsGm45bk-Jg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
