Issue
I used this link, but for me doesn't working...
{
"name": "vendor/work-team-betting",
"description": "Team betting webapplication for an event.",
"type": "webapplication",
"authors": [
{
}
],
"config": {
"vendor-dir": "application/vendor"
},
"extra": {
"installer-paths": {
"application/framework/{$name}": ["yiisoft/yii"]
}
},
"require": {
"composer/installers": "~1.0",
"yiisoft/yii": "1.1.14"
}
}
I use this composer.json, but after installation the composer didn't move the yiisoft/yii into my application/framework/ directory. Anybody can help me, what did I do wrong? :)
Solution
That's not possible, because Yii does (and will) not use custom composer installers, which would be required to make this work.
To quote from the composer installers README:
The following frameworks natively work with Composer and will be installed to the default vendor directory. composer/installers is not needed to install packages with these frameworks: [...] Yii
https://github.com/composer/installers
This also applies to the framework package itself and I'd strongly recommend you not to change this behavior.
If you need to work around some glitches, these articles may be helpful to you:
- http://www.yiiframework.com/wiki/392/creating-yii-applications-with-composer
- http://www.yiiframework.com/wiki/457/fixing-extensions-without-modifying-their-code
Answered By - schmunk
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.