A lot of applications use their own configuration fiels (Laravel, craft etc)
The changes here allow a user to pass in parameters rather than rely on a config file in their vendor directory - which will be overwritten on update. User can pass:
Username
Password
Token Url
cURL options
I have added default cURL options but allowed the user to overwrite them due to differences in the preprod and live systems for exampel preprod does not like cURL version 4 and wont work if that is supplied (Version 1 is required).
I have also condensed some (not all) common functionality (AbstractPoint) for easier maintainability.
A lot of applications use their own configuration fiels (Laravel, craft etc)
The changes here allow a user to pass in parameters rather than rely on a config file in their vendor directory - which will be overwritten on update. User can pass:
I have added default cURL options but allowed the user to overwrite them due to differences in the preprod and live systems for exampel preprod does not like cURL version 4 and wont work if that is supplied (Version 1 is required).
I have also condensed some (not all) common functionality (AbstractPoint) for easier maintainability.