我想从composer和sumfony bundle创建一个symfony项目项目。
这是我想象它会工作的方式,请指导我:
我在包中创建了一个git repo:
在/ path / to / symfony / bundle
$ git init
然后我在/ usr / local / gitremote
中创建了一个服务器git$ git init --bare
我为我的包创建了一个作曲家,如下所示:
{
"name" : "ng/mybundle",
"description" : "Bundle for me",
"type" : "symfony-bundle",
"authors" : [{
"name" : "Sekai",
"email" : "admin@me.com"
}],
"keywords" : [
"me bundle"
],
"license" : [
"proprietary"
],
"require" : {
"php": ">=5.3.3",
"symfony/symfony": "~2.4",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0",
"sensio/generator-bundle": "~2.3",
"doctrine/mongodb-odm": "dev-master",
"doctrine/mongodb-odm-bundle": "dev-master",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/elastica-bundle": "3.0.*@dev",
"matthecat/htmlcompressor-bundle": "dev-master",
"salva/jshrink-bundle": "1.0.*@dev",
"cboden/Ratchet": "0.3.*",
"react/zmq": "0.2.*"
},
"autoload" : {
"psr-0" : {
"Ng\\MeBundle" : ""
}
},
"target-dir" : "Ng/MeBundle",
"repositories" : [{}
],
"extra" : {
"branch-alias" : {
"dev-master" : "2.2-dev"
}
}
}
我提交所有文件,当我克隆它时,它工作正常
现在这就是我想要做的事:
我只想从我的捆绑包中创建整个symfony项目,比如
composer create-project ng/mybundle path/to/project
它将安装所有依赖项,包括symfony 这甚至可能吗?