Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ Example
"type":"mage",
"structure":"file",
"path":"just a random file path"
},
{
"type":"magelib",
"structure":"dir",
"path":"SomeNamespace",
"from":"vendor/foo/bar/src/SomeNamespace"
}
]
}
Expand Down Expand Up @@ -138,6 +144,9 @@ It is very similar to modman but you need to tell magento the type, if it is a f

`path` is the path to your source files.

If you want to include an external library in your package, but on your machine it's located in another path (because
it is a dependency installed via composer), you may specify the real path `from`.

History
=======
This script was developed first within [https://github.com/Flagbit/Magento-FilterUrls].
8 changes: 8 additions & 0 deletions src/shell/packager.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ public function getContent()
$ignore = $element->ignore;
}

if(isset($element->from)) {
$mageTargets = new Mage_Connect_Package_Target();
$targetMap = $mageTargets->getTargets();

$link = BP . DS . $targetMap[$element->type] . DS . $element->path;
symlink(BP . DS . $element->from, $link);
}

$contents["target"][$i] = $element->type;
$contents["type"][$i] = $element->structure;
$contents["path"][$i] = $element->path;
Expand Down