The autoloader is only present if composer install is ran directly in the plugin folder. If the plugin is pulled in as a dependency then the autoloader and vendor folder will be located elsewhere leading to a fatal error
Instead, only load vendor/autoload.php if it exists
The autoloader is only present if
composer install
is ran directly in the plugin folder. If the plugin is pulled in as a dependency then the autoloader and vendor folder will be located elsewhere leading to a fatal errorInstead, only load
vendor/autoload.php
if it exists