Tuesday, 15 March 2011

git - Create a project from bundle -



git - Create a project from bundle -

want create symfony project project composer , sumfony bundle. here how imagined it'll work , please guide me: created git repo in bundle : in /path/to/symfony/bundle

$ git init

then created server git in /usr/local/gitremote

$ git init --bare

i created composer bundle follows :

{ "name" : "ng/mybundle", "description" : "bundle 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" } } }

i commit files , when clone it works fine. here want : want bundle , create whole symfony project in composer

composer create-project ng/mybundle path/to/project

and install dependencies including symfony. possible ?

git symfony2

No comments:

Post a Comment