我第一次尝试使用Cake
PHP与作曲家,但我有一些问题.
我有这个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"] } } }
当我运行composer install(或update)–prefer-dist时,一切都可以工作,除了smottt / wideimage.
此软件包正在/ Vendor文件夹而不是/ app / Vendor中安装,因此,将忽略installer-paths.
从
documentation.
You cannot use this to change the path of any package. This is only
applicable to packages that require composer/installers and use a
custom type that it handles.
从您正在安装的packages之一:
{ "name": "smottt/wideimage","description": "An open-source PHP library for image manipulation. (With namespaces,PHP 5.3+)","homepage": "http://wideimage.sourceforge.net","type": "library","license": ["GPL-2.0","LGPL-2.1"],"version": "11.02.19","autoload": { "psr-0" : { "WideImage" : "lib/" } } }