-
Notifications
You must be signed in to change notification settings - Fork 67
Description
I've a added this and got it installed via my themes composer.json so i now have acf and the installer in my vendor directory. But how do I tie this in?
I see an auto loader but my themes require_once __DIR__ . '/vendor/autoload.php'; doesn't seem to pull in anything from this package. Though other composer auto loaded packages are working fine like Knit.
"repositories": [ { "type": "package", "package": { "name": "advanced-custom-fields/advanced-custom-fields-pro", "version": "5.6.0", "type": "library", "dist": { "type": "zip", "url": "https://connect.advancedcustomfields.com/index.php?p=pro&a=download" }, "require": { "philippbaschke/acf-pro-installer": "^1.0", "composer/installers": "^1.0" } } }, { "type":"composer", "url":"https://wpackagist.org" } ], "require": { "advanced-custom-fields/advanced-custom-fields-pro": "*" },
If trying to instantiate the Plugin class manually I get the following:
PHP Fatal error: Interface 'Composer\Plugin\PluginInterface' not found in /Users/user/Repos/wpthemetest/vendor/philippbaschke/acf-pro-installer/src/ACFProInstaller/Plugin.php on line 28