symfony - Symfony2 install bundles with composer -


i'm creating site using symfony 2 , have big problems installing knpmenubundle. read lot such problems. , tried lot of variants how fix this. nothing helps.

this composer.json file:

{     "name": "symfony/framework-standard-edition",     "description": "the \"symfony standard edition\" distribution",     "autoload": {         "psr-0": { "": "src/" }     },     "require": {         "php": ">=5.3.3",         "symfony/symfony": "2.2.*",         "doctrine/orm": "~2.2,>=2.2.3",         "doctrine/doctrine-bundle": "1.2.*",         "twig/extensions": "1.0.*",         "symfony/assetic-bundle": "2.1.*",         "symfony/swiftmailer-bundle": "2.2.*",         "symfony/monolog-bundle": "2.2.*",         "sensio/distribution-bundle": "2.2.*",         "sensio/framework-extra-bundle": "2.2.*",         "sensio/generator-bundle": "2.2.*",         "jms/security-extra-bundle": "1.4.*",         "jms/di-extra-bundle": "1.3.*",         "doctrine/doctrine-fixtures-bundle": "dev-master",         "doctrine/data-fixtures" : "dev-master",         "knplabs/knp-paginator-bundle": "dev-master",         "apy/datagrid-bundle": "2.2.*@dev",         "friendsofsymfony/user-bundle": "*",         "jms/security-extra-bundle": "1.4.x-dev",         "knplabs/knp-menu-bundle":"dev-master"     },     "scripts": {         "post-install-cmd": [             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::buildbootstrap",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::clearcache",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installassets",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installrequirementsfile"         ],         "post-update-cmd": [             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::buildbootstrap",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::clearcache",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installassets",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installrequirementsfile"         ]     },     "config": {         "bin-dir": "bin"     },     "minimum-stability": "dev",     "extra": {         "symfony-app-dir": "app",         "symfony-web-dir": "web",         "branch-alias": {             "dev-master": "2.2-dev"         }     } } 

and here got in console

d:\work\youmustknowit_portal\symfony>php composer.phar update loading composer repositories package information updating dependencies (including require-dev) requirements not resolved installable set of packages.    problem 1     - installation request knplabs/knp-menu-bundle dev-master -> satisfiable  knplabs/knp-menu-bundle[dev-master].     - knplabs/knp-menu-bundle dev-master requires knplabs/knp-menu 2.0.* -> no m atching package found.  potential causes:  - typo in package name  - package not available in stable-enough version according min imum-stability setting    see <https://groups.google.com/d/topic/composer-dev/_g3aseiflrc/discussion> f or more details.  read <http://getcomposer.org/doc/articles/troubleshooting.md> further common  problems. 

the package knplabs/knp-menu-bundle has requirement knplabs/knp-menu version 2.0.*. dependency has no tagged 2.0 release. simplest way accomplish this, use dev version of dependency. add reqirements:

"knplabs/knp-menu": "2.0.*@dev" 

then should following output (commit-sha may differ):

- installing knplabs/knp-menu (dev-master 5cf5ab4)   cloning 5cf5ab4948d8c573f260e2b612bfc9721da1c892  - installing knplabs/knp-menu-bundle (dev-master a4d6b33)   cloning a4d6b338e47920880d1c972143ef39ffb564665f 

last step activate bundle in app/appkernel.php:

public function registerbundles() {     $bundles = array(         // ...         new knp\bundle\menubundle\knpmenubundle(),     );     // ... } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -