We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ea686 commit 1506d9eCopy full SHA for 1506d9e
src/Joomlatools/Console/Symlinkers/joomlatools-framework.php
@@ -63,6 +63,25 @@
63
}
64
65
66
+ // Component assets
67
+ $results = glob($project.'/code/libraries/joomlatools-components/*/resources/assets', GLOB_ONLYDIR);
68
+
69
+ foreach ($results as $from)
70
+ {
71
+ $component = preg_replace('#^.*?joomlatools-components/([^/]+)/resources/assets#', '$1', $from);
72
+ $to = Util::buildTargetPath('/media/koowa/com_'.$component, $destination);
73
74
+ if (!$component || is_link($to)) {
75
+ continue;
76
+ }
77
78
+ if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
79
+ $output->writeln(" * creating link `$to` -> $from");
80
81
82
+ `ln -sf $from $to`;
83
84
85
// Let the default symlinker handle the rest
86
return false;
87
});
0 commit comments