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

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,920
Points
823

Reputation:

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...
Chris DThis 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