Class 'Doctrine\Instantiator\Instantiator' not found
Fatal error: Class 'Doctrine\Instantiator\Instantiator' not found in /var/www/html/app-name/authorizenet-php/vendor/jms/serializer/src/JMS/Serializer/Construction/UnserializeObjectConstructor .php
Using version 1.8.9
Just to be thorough in my explanation this is what I did.
- Downloaded and uncompressed version 1.8.9 to /authorizenet-php subfolder in my app
- ran composer update from within the /authorizenet-php folder and everything resolved correctly
- pointed my include at the autoload.php within /authorizenet-php folder
- visit script, error occurs
The classmap.php needs to be updated for the new dependencies, or abandoned for composer's autoload.
Point your 'include' to path/to/sdk/vendor/autoload.php, instead.
@texdc this was exactly my problem, not sure how i got so mixed up on how to properly install this SDK but for whatever reason the readme seems to be relatively vague on this subject. Thank you so much @texdc!
@texdc Right now mine is pointing to sites/all/libraries/anet_php_sdk/autoload.php are you suggesting to change it to sites/all/libraries/anet_php_sdk/vendor/autoload.php?
@natem yes, that's the composer autoload, if you're not already using it.