Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Allow mapping one file to multiple destinations #89

Open
JPry opened this issue Oct 13, 2014 · 2 comments
Open

Allow mapping one file to multiple destinations #89

JPry opened this issue Oct 13, 2014 · 2 comments

Comments

@JPry
Copy link

JPry commented Oct 13, 2014

I would like the ability to map a single file to multiple locations upon build. For example, this is what the json file might look like:

    "map": [
        {
            "src/some/file/config.inc": "vendor/some/path/config-mapped.php",
            "src/some/file/config.inc": "vendor/other/path/config-mapped.php"
        }
    ]

Currently, the second mapping above will override the first one.

Alternatively, the map could have an array of multiple locations, like this:

    "map": [
        {
            "src/some/file/config.inc": [
                "vendor/some/path/config-mapped.php",
                "vendor/other/path/config-mapped.php"
            ]
        }
    ]
@ghost ghost added the Enhancement label Oct 15, 2014
@ghost
Copy link

ghost commented Oct 15, 2014

This will be a good feature to add!

Adding it to the todo list.

@kherge
Copy link
Contributor

kherge commented May 22, 2015

Adding a note to myself, this can be done using Phar::copy().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants