使用 Symfony 2.8 或 3.1 安装 kunstmaan/adminlist-bundle
Installing kunstmaan/adminlist-bundle with Symfony 2.8 or 3.1
我有一个使用 finder 组件的 Symfony 3.1 项目。我现在正在尝试使用 kunstmaan/adminlist-bundle.
构建一个 CRUD 界面
我正在努力解决作曲家的要求。
从开始安装 kunstmaan 包开始,它们似乎只与 Symfony 2.7 或 2.8 兼容?
我似乎一直在兜圈子。解决这些问题的好策略是什么?
composer.json:
{
"name": "jochen/processor",
"license": "proprietary",
"type": "project",
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"require": {
"php": ">=7.0.0",
"symfony/symfony": "2.7.*",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/monolog-bundle": "^2.7",
"symfony/polyfill-apcu": "^1.0",
"symfony/finder": "@dev",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"kunstmaan/admin-bundle": "@dev",
"kunstmaan/adminlist-bundle": "@dev",
"kunstmaan/generator-bundle": "^3.5"
},
"require-dev": {
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^3.0"
},
"scripts": {
"symfony-scripts": [
"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::prepareDeploymentTarget"
],
"post-install-cmd": [
"@symfony-scripts"
],
"post-update-cmd": [
"@symfony-scripts"
]
},
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "web",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
作曲家输出
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- kunstmaan/generator-bundle 3.5.x-dev requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev].
- kunstmaan/generator-bundle 3.5.0 requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev].
- kunstmaan/generator-bundle 3.5.1 requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev].
- kunstmaan/generator-bundle 3.5.x-dev requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev].
- Conclusion: don't install symfony/symfony 2.8.x-dev
- Installation request for kunstmaan/generator-bundle ^3.5 -> satisfiable by kunstmaan/generator-bundle[3.5.0, 3.5.1, 3.5.x-dev].
您在 composer.json 中的 kunstmaan/generator-bundle "^3.5" 需要 symfony 2.8(如您在 https://packagist.org/packages/kunstmaan/generator-bundle#3.5.1 中所见)。在你的 composer.json 中你有 symfony 2.7.*。将其更改为 2.8.*.
我有一个使用 finder 组件的 Symfony 3.1 项目。我现在正在尝试使用 kunstmaan/adminlist-bundle.
构建一个 CRUD 界面我正在努力解决作曲家的要求。
从开始安装 kunstmaan 包开始,它们似乎只与 Symfony 2.7 或 2.8 兼容?
我似乎一直在兜圈子。解决这些问题的好策略是什么?
composer.json:
{
"name": "jochen/processor",
"license": "proprietary",
"type": "project",
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"require": {
"php": ">=7.0.0",
"symfony/symfony": "2.7.*",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/monolog-bundle": "^2.7",
"symfony/polyfill-apcu": "^1.0",
"symfony/finder": "@dev",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"kunstmaan/admin-bundle": "@dev",
"kunstmaan/adminlist-bundle": "@dev",
"kunstmaan/generator-bundle": "^3.5"
},
"require-dev": {
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^3.0"
},
"scripts": {
"symfony-scripts": [
"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::prepareDeploymentTarget"
],
"post-install-cmd": [
"@symfony-scripts"
],
"post-update-cmd": [
"@symfony-scripts"
]
},
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "web",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
作曲家输出
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- kunstmaan/generator-bundle 3.5.x-dev requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev].
- kunstmaan/generator-bundle 3.5.0 requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev].
- kunstmaan/generator-bundle 3.5.1 requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev].
- kunstmaan/generator-bundle 3.5.x-dev requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev].
- Conclusion: don't install symfony/symfony 2.8.x-dev
- Installation request for kunstmaan/generator-bundle ^3.5 -> satisfiable by kunstmaan/generator-bundle[3.5.0, 3.5.1, 3.5.x-dev].
您在 composer.json 中的 kunstmaan/generator-bundle "^3.5" 需要 symfony 2.8(如您在 https://packagist.org/packages/kunstmaan/generator-bundle#3.5.1 中所见)。在你的 composer.json 中你有 symfony 2.7.*。将其更改为 2.8.*.