composer is ignoring installer-paths configuration

Viewed 10104

I'm try using CakePHP for the first time with composer, but I have some problems.

I have this composer.json:

{
  "name": "example.com.br",
  "repositories": [
    {
      "type": "pear",
      "url": "http://pear.cakephp.org"
    }
  ],
  "config": {
    "vendor-dir": "Vendor/"
  },
  "require": {
    "php": ">=5.4",
    "pear-cakephp/cakephp": ">=2.4.3",
    "cakephp/debug_kit": "2.2.*",
    "smottt/wideimage": "dev-master"
  },
  "extra": {
    "installer-paths": {
      "app/Plugin/DebugKit": ["cakephp/debug_kit"],
      "app/Vendor/Wideimage": ["smottt/wideimage"]
    }
  }  
}

When I run composer install (or update) --prefer-dist, everything works except smottt/wideimage.

This package is being installed in the /Vendor folder instead /app/Vendor, so, installer-paths was ignored.

4 Answers
Related