Skip to content

Commit 9c0d75e

Browse files
committed
Merge pull request #124 from jsmirnov/patch-1
added magento-map-overwrite description
2 parents 39a6e02 + c9b9a28 commit 9c0d75e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

doc/Mapping.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,30 @@ If you don't like modman files, you can define mappings in a package composer.js
4141
}
4242
```
4343

44+
`magento-map-overwrite` parameter can be used to override module default mapping. For example, module default mapping is: `app/code/community/CompanyDir/ModuleDir/*` => `app/code/community/CompanyDir/ModuleDir/`, but you would like to have it as `app/code/community/CompanyDir/ModuleDir/*` => `app/code/local/CompanyDir/ModuleDir`.
45+
So sample `module` is provided by `company` with version `*`.
46+
47+
Here is the entry for composer.json:
48+
```
49+
{
50+
"require": {
51+
...
52+
"company/module": "*"
53+
},
54+
"repositories": [
55+
...
56+
],
57+
"extra": {
58+
...
59+
"magento-map-overwrite": {
60+
"company/module": [
61+
["app/code/community/CompanyDir/ModuleDir/*", "app/code/local/CompanyDir/ModuleDir"]
62+
]
63+
}
64+
}
65+
}
66+
67+
```
68+
so `company/module` is an array of mapping entries - arrays where first key is source path and second key is destination path.
69+
4470

0 commit comments

Comments
 (0)