kirby-chunky
kirby-chunky copied to clipboard
Use @include_once to load plugins composers dependencies.
Closes #2
When installing Kirby with composer getkirby/composer-installer
takes care of installing the plugins composer dependencies into the main composer vendor directory.
You can the check the the Kirby Plugin guide for further information on how to setup the plugin to support different installation methods.
Note that you should not
require
the autoloader, as it will only be present if the plugin is installed manually or via a Git submodule. Our custom Composer installer will delete thevendor
directories from plugins to avoid code duplication and autoloading issues. By using@include_once
, you tell PHP to load the file only if it exists.