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

docker/l3d#58 Move project settings out of composer.json

parent 5f3088fa
Branches
No related tags found
No related merge requests found
...@@ -42,14 +42,16 @@ class Handler extends BaseHandler { ...@@ -42,14 +42,16 @@ class Handler extends BaseHandler {
} }
$installationManager = $this->composer->getInstallationManager(); $installationManager = $this->composer->getInstallationManager();
foreach ($this->composer->getRepositoryManager()->getLocalRepository()->search('*') as $pkg) { foreach ($this->composer->getRepositoryManager()->getLocalRepository()->search('lakedrops/*') as $pkg) {
$pluginRoot = $installationManager->getInstallPath($this->getPackage($pkg['name'])); $pluginRoot = $installationManager->getInstallPath($this->getPackage($pkg['name']));
if (file_exists($pluginRoot . '/.ahoy.yml')) { if (file_exists($pluginRoot . '/.ahoy.yml')) {
$pluginAhoy = Yaml::parseFile($pluginRoot . '/.ahoy.yml'); $pluginAhoy = Yaml::parseFile($pluginRoot . '/.ahoy.yml');
foreach ($pluginAhoy['commands'] as $command => $commands) { foreach ($pluginAhoy['commands'] as $command => $commands) {
$ahoy['commands'][$command] = $commands; $ahoy['commands'][$command] = $commands;
foreach ($commands['imports'] as $key => $import) { if (isset($commands['imports']) && is_array($commands['imports'])) {
$ahoy['commands'][$command]['imports'][$key] = './vendor/' . $pkg['name'] . '/' . $import; foreach ($commands['imports'] as $key => $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.
Please register or to comment