I was poking around the PHP SDK and noticed a pote...
# talk-kratos
l
I was poking around the PHP SDK and noticed a potential issue. If you do something like the below. The second
setHost()
call will overwrite the first one because the
getDefaultConfiguration()
call returns a config singleton. This results in both apis pointing to the same host. Unsure if this is intentional.
Copy code
$oryAdminConfig = Configuration::getDefaultConfiguration()->setHost('<http://admin:4434>');
$oryAdminClient = new IdentityApi($httpClient, $oryAdminConfig);

$oryPublicConfig = Configuration::getDefaultConfiguration()->setHost('<http://public:4433>');
$oryPublicClient = new FrontendApi($httpClient, $oryPublicConfig);