Skip to content

Integration as a library #23

@codecomp

Description

@codecomp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions