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.
什麼是指「沒有適配器已配置」?