/** * Relinks the plugins */ public function linkPlugins() { if (empty($this->_plugins)) { return; } foreach ($this->_plugins as $plugin) { echo "Linking plugin " . $plugin['plugin'] . ' (' . $plugin['folder'] . ")\n"; $map = $this->_mapPlugin($plugin); extract($map); foreach ($dirs as $from => $to) { symlink_dir(realpath2($from), realpath2($to)); } foreach ($files as $from => $to) { symlink_file(realpath2($from), realpath2($to)); } } }
/** * Relinks the plugins */ public function linkPlugins() { if (empty($this->_plugins)) { return; } foreach ($this->_plugins as $plugin) { $this->log("Linking plugin " . $plugin['plugin'] . ' (' . $plugin['folder'] . ")", Project::MSG_INFO); $dirs = array(); $files = array(); $map = $this->_mapPlugin($plugin); extract($map); foreach ($dirs as $from => $to) { symlink_dir(realpath2($from), realpath2($to)); } foreach ($files as $from => $to) { symlink_file(realpath2($from), realpath2($to)); } } }