-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration as a library #23
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: