Reply to thread

We generally wouldn't be looking to patch vendor files with changes outside of the scope of the official repo, so we'd actually need to wait until that pull request was merged into the main repo or switch to a different fork (though clearly we'd want to ensure that fork is maintained well).


So I'm not sure we'd fix this. Instead I'd suggest you bringing in the patched service class to within your own add-on.


So for example you'd download the fixed service provider and add it to the following location src/addons/Your/AddOn/ConnectedAccount/Service/DropBox.php and then you would update the namespace, the AbstractService class name (either alias it or change it to OAuth\OAuth2\Service\AbstractService.


You would override getOAuthServiceName() to return the class name of your service, so, Your\AddOn:Service\DropBox.


That should sort it for you.


Back
Top Bottom