Skip to content
Snippets Groups Projects
Commit 6071eb9f authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix path to imports

Self-support ahoy for easier updates
parent d1edd5bd
No related branches found
Tags v1.0.2
No related merge requests found
ahoyapi: v2
commands:
update:
cmd: composer ahoy "$@"
usage: Update Ahoy setup in project
......@@ -48,10 +48,16 @@
"class": "LakeDrops\\Ahoy\\Plugin",
"lakedrops": {
"scripts": {
"lakedrops-ahoy": {
"ahoy": {
"callback": "LakeDrops\\Ahoy\\Plugin::scripts",
"description": "Scan LakeDrops plugins for ahoy scripts."
}
},
"ahoy": {
"ahoy": {
"usage": "Ahoy",
"imports": ["ahoy.yml"]
}
}
}
}
......
......@@ -79,7 +79,7 @@ class Handler {
foreach ($pluginSettings->getSubSubSection('extra', 'lakedrops', 'ahoy') as $command => $commands) {
$ahoy['commands'][$command] = [];
foreach ($commands['imports'] as $key => $import) {
$ahoy['commands'][$command]['imports'][$key] = './vendor/lakedrops/' . $pkg['name'] . '/' . $import;
$ahoy['commands'][$command]['imports'][$key] = './vendor/' . $pkg['name'] . '/' . $import;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment