Closed dgsiegel closed 2 years ago
config is loaded before the plugins. stuff like that only works with composer. if you want to do that with gitsubmodules you have to include the autoloader from the qrcode plugin at the header of your config file.
https://github.com/bnomei/kirby3-qrcode/blob/1d77b953c9315dd8d22e40225551785d4118796e/index.php#L3
site/config/config.php (untested)
@include_once __DIR__ . '/../site/plugins/kirby3-qrcode/vendor/autoload.php';
return [
// config stuff
];
You had it almost, this is the correct path:
@include_once __DIR__ . '/../plugins/kirby3-qrcode/vendor/autoload.php';
I've added this plugin via a git submodule. When trying to change the background or foreground colors with:
'foregroundColor' => new \Endroid\QrCode\Color\Color(0, 0, 0),
I get the following exception: