monero-integrations / monerophp

Monero PHP library + JsonRPC Client
MIT License
116 stars 76 forks source link

Remove extraneous require statements #149

Closed itismadness closed 8 months ago

itismadness commented 8 months ago

Removes two require('vendor/autoload.php'); statements from the source code, as it should be up to the user of this library to handle setting up the composer autoload, not the library itself. Having these requires breaks trying to use this library for people who's working directory is not the root of their project where composer installs the dependencies, and then doing require('vendor/autoload.php') will not work due to the nature of relative pathing.

These statements were introduced in #141 though I am not sure why, and they were only introduced to two classes vs everywhere within the library.