Witam,
Mam bundla: MyDataGridBundle i w nim composer.json:
{
"name": "my/datagrid-bundle",
"type": "symfony-bundle",
"description": "This bundle provide build data grids",
"keywords": ["util"],
"license": ["MIT"],
"authors": [{
"name": "",
"email": ""
}],
"require": {
"symfony/framework-bundle": "~2.0",
"my/xhtml-bundle": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/my/xhtml"
}
],
"autoload": {
"psr-0": {"My\\Bundle\\DataGridBundle": ""}
},
"target-dir": "My/Bundle/DataGridBundle",
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
}
}
Oraz wymagaby bundle z plikiem composer.json:
{
"name": "my/xhtml-bundle",
"description": "This bundle provide xhtml builder",
"keywords": ["util"],
"type": "symfony-bundle",
"license": ["MIT"],
"authors": [{
"name": "",
"email": ""
}],
"require": {
"symfony/framework-bundle": "~2.0"
},
"autoload": {
"psr-0": {
"My\\Bundle\\XhtmlBundle": ""
}
},
"target-dir": "My/Bundle/XhtmlBundle",
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
}
}
I teraz w swoim projekcie który piszę pod Symfony2 w pliku composer.json chcę dodać:
...
"required": {
"my/datagrid-bundle": "dev-master",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/my/datagrid"
}
]
}
Niestety dostaję coś takiego:
Problem 1
- my/datagrid-bundle dev-master requires my/xhtml-bundle dev-master -> no matching package found.
- my/datagrid-bundle dev-master requires my/xhtml-bundle dev-master -> no matching package found.
- Installation request for my/datagrid-bundle dev-master -> satisfiable by my/datagrid-bundle[dev-master].
Jak w pliku MyDataGridBundle usunę linijkę z required (my/xhtml-bundle) to jest ok.
Jak zrobić, żeby w bundlu można było dociągać potrzebne zależności ?
Pozdrawiam