使用Composer,我试图在目录中安装symfony2,在另一个目录中安装wordpress。
使用此处找到的信息http://roots.io/using-composer-with-wordpress/我想我可以编辑我的sf2 composer.json并添加所需的信息,但没有运气。
这是可能的,还是应该在子目录中创建另一个composer.json文件?
作为参考,这里是(简化的)json:
{
"repositories": [
{
"type": "package",
"package": {
"name": "wordpress",
"type": "webroot",
"version": "3.8",
"dist": {
"type": "zip",
"url": "https://github.com/WordPress/WordPress/archive/3.8.zip"
},
"require" : {
"fancyguy/webroot-installer": "1.0.0"
}
}
}
],
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "~2.4",
"wordpress": "3.8",
"fancyguy/webroot-installer": "1.0.0"
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
},
"webroot-dir": "wp",
"webroot-package": "wordpress"
}
}
我得到的错误是:
symfony/framework-standard-edition 2.4.x-dev requires wordpress 3.8 -> no matching package found
感谢您花时间阅读本文!