2015-04-22 104 views
0

我一直在尝试使用symfony cmf路由自动绑定来使我的路由动态,我一直在试图安装这个包。Symfony CMF自动路由包

如果我对cmf包的实现是正确的,那么PHPCR是必需的,phpcr的实现是用jackalope Doctrine DBAL来实现的。我正在尝试下载jackalope doctrine DBAL以使用phpcr软件包,但jackalope未安装并因错误而恢复。如果我错了,请纠正我,如果不是Jackalope doctrine dbal有什么问题。

这是我composer.json文件

{ 
"name": "symfony/framework-standard-edition", 
"license": "MIT", 
"type": "project", 
"description": "The \"Symfony Standard Edition\" distribution", 
"autoload": { 
    "psr-0": { "": "src/", "SymfonyStandard": "app/" } 
}, 
"require": { 
    "php": ">=5.3.3", 
    "symfony/symfony": "2.6.*", 
    "doctrine/orm": "~2.2,>=2.2.3,<2.5", 
    "doctrine/dbal": "<2.5", 
    "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": "~3.0,>=3.0.12", 
    "sensio/framework-extra-bundle": "~3.0,>=3.0.2", 
    "incenteev/composer-parameter-handler": "~2.0", 
    "friendsofsymfony/user-bundle": "[email protected]", 
    "jackalope/jackalope-doctrine-dbal":" 1.2.*@dev", 
    "phpcr/phpcr-utils": "1.2.*@dev", 
    "knplabs/knp-menu-bundle": "dev-master", 
    "symfony-cmf/routing-bundle": "1.4.*@dev", 
    "symfony-cmf/routing-auto-bundle": "1.1.*@dev", 
    "doctrine/doctrine-fixtures-bundle": "2.2.*@dev" 


}, 
"require-dev": { 
    "sensio/generator-bundle": "~2.3" 
}, 
"scripts": { 
    "post-root-package-install": [ 
     "SymfonyStandard\\Composer::hookRootPackageInstall" 
    ], 
    "post-install-cmd": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles" 
    ], 
    "post-update-cmd": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles" 
    ] 
}, 
"config": { 
    "bin-dir": "bin" 
}, 
"extra": { 
    "symfony-app-dir": "app", 
    "symfony-web-dir": "web", 
    "symfony-assets-install": "relative", 
    "incenteev-parameters": { 
     "file": "app/config/parameters.yml" 
    }, 
    "branch-alias": { 
     "dev-master": "2.6-dev" 
    } 
} 

} 

当更新显示composer.json以下错误:

Your requirements could not be resolved to an installable set of packages.   

Problem 1                  
    - jackalope/jackalope-doctrine-dbal 1.2.x-dev requires jackalope/jackalop  
e ~1.2.0 -> no matching package found.            
    - jackalope/jackalope-doctrine-dbal 1.2.0-RC1 requires doctrine/dbal ~2.5  
,>=2.5.0 -> no matching package found.            
- Installation request for jackalope/jackalope-doctrine-dbal 1.2.*@dev -  
> satisfiable by jackalope/jackalope-doctrine-dbal[1.2.0-RC1, 1.2.x-dev].   

Potential causes:                 
- A typo in the package name              
- The package is not available in a stable-enough version according to your  
minimum-stability setting               
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion  
> for more details.                

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further  common problems.                  

当访问以下错误我的项目包出现:

InvalidConfigurationException in CmfRoutingAutoExtension.php line 72: 
No adapter has been configured, you either need to enable a persistence layer  or explicitly specify an adapter using the "adapter" configuration key. 

什么是指“没有适配器已配置”?

回答