N
N
Nikita Samokhvalov2015-04-15 14:46:03
Composer
Nikita Samokhvalov, 2015-04-15 14:46:03

How to change directory for a package in Composer?

In the composer.json of the project, I wrote a dependency (git repository), suppose test/test-pack. And in the same file I registered the setting so that this package would be installed on a custom path:

"extra": {
    "installer-paths": {
      "local/templates/.default/test": ["test/test-pack"]
    }
  }

But the package is installed in vendor/. Why? What am I doing wrong?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Samokhvalov, 2015-04-19
@niksamokhvalov

The reason was that the package type was not specified in the pluggable dependency. The type must have been one of those available in the composer/install package.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question