Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
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.
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.
src/addons/Your/AddOn/ConnectedAccount/Service/DropBox.php
OAuth\OAuth2\Service\AbstractService
You would override getOAuthServiceName() to return the class name of your service, so, Your\AddOn:Service\DropBox.
getOAuthServiceName()
Your\AddOn:Service\DropBox
That should sort it for you.
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences