XF / News Can't create multiple instances of connected account provider type XenForo

Status
Not open for further replies.

Bots

Registered
Joined
May 3, 2024
Messages
4,110
Reaction score
1
Chris D said:
Kinda. There’s only one pre-installed but you can add multiple entries of type XF:Provider\XenForo to the provider table in the database if that’s needed.
Click to expand...
This does not work as the providerId is hardcoded in XF\ConnectedAccount\ProviderData

PHP:

Code:
public function getDefaultEndpoint(): string
{
    /** @var \XF\Entity\ConnectedAccountProvider $provider */
    $provider = \XF::app()->em()->find(ConnectedAccountProvider::class, 'xenforo');

    return...

Read more

Continue reading...
 
Status
Not open for further replies.
Top