-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Summary
The documentation is missing an explicit example for when you want to use a single set of Framework files for multiple plugins.
The steps required to make this work are:
- Create a new folder for a new plugin
- Copy plugin.php, herbert.config.php, app, and composer.json
- Update herbert.config.php with the new values for the plugin (mostly update namespaces)
- Update composer.json with the new namespace
- Modify plugin.php. Update the path for
vendor/getherbert/framework/bootstrap/autoload.phpso that it points to the path where the framework files are installed. In my case, the framework is in another plugin so I'm using/../my-master-plugin/vendor/getherbert/framework/bootstrap/autoload.php - Run
composer dump-autoloadfrom the directory of the new plugin
Your new plugin is now ready to be installed and used.
Metadata
Metadata
Assignees
Labels
No labels