Closed stumpc closed 1 year ago
bindClient()
and bindConfiguration()
methods for better organization.createClient
method.Closing since I think I might have gotten a bit ahead of myself. Locally I'm not experiencing the bug on the master
branch the same way I experience it when I use expose
in a container via Laravel Sail (sail share
command) or otherwise, so I wonder if this was fixed somehow else and has not flowed through the version of that project I am using right now.
Issue:
in
app/Client/Factory.php
,bindClient()
is called beforebindConfiguration()
increateClient()
. This causes the created client to not have any changes to the configuration. Namely, this causesShareCommand
to effectively ignore an input option for--auth
, instead defaulting to whatever is in theexpose.php
config file.This change should fix the issue here: https://github.com/beyondcode/expose/issues/175 . The asked-for
--token
option should already be satisfied by the--auth
option, but due to this bug it was not behaving correctly.