如何从 symfony2 项目中删除供应商?
How to remove a vendor from a symfony2 project?
如何巧妙地移除 vendor ?
我正在安装的 SyliusCartBundle 需要 Stof 1.1.*,而我的 Symfony 项目有 Stof 1.2.x。所以我想删除 Stof 1.2。
归结为删除:
- 供应商目录中的 stof 目录
- AppKernel 行
这里是 shell 的错误输出:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: stof/doctrine-extensions-bundle[v1.1.0, 1.2.x-dev
].
- Can only install one of: stof/doctrine-extensions-bundle[v1.1.0, 1.2.x-dev
].
- sylius/order-bundle v0.12.0 requires stof/doctrine-extensions-bundle 1.1.*
-> satisfiable by stof/doctrine-extensions-bundle[v1.1.0].
- sylius/cart-bundle v0.12.0 requires sylius/order-bundle 0.12.*@dev -> sati
sfiable by sylius/order-bundle[v0.12.0].
- Installation request for sylius/cart-bundle 0.12.* -> satisfiable by syliu
s/cart-bundle[v0.12.0].
- Installation request for stof/doctrine-extensions-bundle == 1.2.9999999.99
99999-dev -> satisfiable by stof/doctrine-extensions-bundle[1.2.x-dev].
Installation failed, reverting ./composer.json to its original content.
这是您需要做的
- 从
AppKernel
中删除行
- 从
config.yml
中删除任何依赖项
- 从项目中删除 require 语句
composer.json
如果您仍然遇到错误,因为您的其他供应商软件包之一需要您已删除的软件包,因此您将不得不保留该捆绑包或删除所有依赖的捆绑包
如何巧妙地移除 vendor ?
我正在安装的 SyliusCartBundle 需要 Stof 1.1.*,而我的 Symfony 项目有 Stof 1.2.x。所以我想删除 Stof 1.2。
归结为删除:
- 供应商目录中的 stof 目录
- AppKernel 行
这里是 shell 的错误输出:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: stof/doctrine-extensions-bundle[v1.1.0, 1.2.x-dev
].
- Can only install one of: stof/doctrine-extensions-bundle[v1.1.0, 1.2.x-dev
].
- sylius/order-bundle v0.12.0 requires stof/doctrine-extensions-bundle 1.1.*
-> satisfiable by stof/doctrine-extensions-bundle[v1.1.0].
- sylius/cart-bundle v0.12.0 requires sylius/order-bundle 0.12.*@dev -> sati
sfiable by sylius/order-bundle[v0.12.0].
- Installation request for sylius/cart-bundle 0.12.* -> satisfiable by syliu
s/cart-bundle[v0.12.0].
- Installation request for stof/doctrine-extensions-bundle == 1.2.9999999.99
99999-dev -> satisfiable by stof/doctrine-extensions-bundle[1.2.x-dev].
Installation failed, reverting ./composer.json to its original content.
这是您需要做的
- 从
AppKernel
中删除行
- 从
config.yml
中删除任何依赖项
- 从项目中删除 require 语句
composer.json
如果您仍然遇到错误,因为您的其他供应商软件包之一需要您已删除的软件包,因此您将不得不保留该捆绑包或删除所有依赖的捆绑包