Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install your own bundle with Composer in Symfony 2.1?

I've just moved to Symfony 2.1, and I can't understand, how can I install my own bundles with Composer?

It was very easy in 2.0.x in deps:

[MyOwnBundle]
  [email protected]:weboshin_cms_bundle.git
  target=/bundles/My/OwnBundle

After that I just triggered bin/vendors update and that was it!

But now there's no deps file, and I supposed to do everything with Composer. Please give me any hints.

like image 799
IlyaDoroshin Avatar asked Aug 22 '12 15:08

IlyaDoroshin


1 Answers

I've found the answer.

// my_project/compose.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "own_repository_url"
        }
    ],

    // ...

    "require": {
        // ...
        "own/bundle": "dev-master"
    }
},

 

// own_repository/own_bundle/compose.json:
{
    "name": "own/bundle"
}
like image 62
IlyaDoroshin Avatar answered Oct 13 '22 13:10

IlyaDoroshin