royboy789/gutenberg-object-plugin

Conditionally load autoloader

Closed this issue · 1 comments

tomjn commented

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

conditionaled