简体   繁体   English

精确版本的 TYPO3 作曲家设置

[英]Composer setup of TYPO3 in exact version

Is it possible to require the whole TYPO3 and all of its components in exact version without putting this exact version to all components ?是否有可能需要整个 TYPO3 及其所有组件的精确版本,而无需将此精确版本放到所有组件中? Pls.请。 see part of my composer.json file:查看我的 composer.json 文件的一部分:

"require": {
  "typo3/cms-core": "10.4.20",    
  "typo3/cms-about": "^10.4",
  "typo3/cms-adminpanel": "^10.4",
  "typo3/cms-backend": "^10.4",
  "typo3/cms-belog": "^10.4",
  "typo3/cms-beuser": "^10.4",

In other words: Do I have write "10.4.20" to all of the components below the the first line where I require the TYPO3 10.4.20 core or is there another way to do that with one line of code ?换句话说:我是否在需要 TYPO3 10.4.20 核心的第一行下方的所有组件中写入了“10.4.20”,还是有另一种方法可以用一行代码来做到这一点?

You need to use the same version number for all typo3/cms-* packages.您需要为所有typo3/cms-*包使用相同的版本号。 With search & replace that should be quite easy.使用搜索和替换应该很容易。

Yes.是的。 It is possible.有可能的。 Just give it a try:试试看:

$ composer require typo3/cms-core:10.4.20 typo3/cms-about:^10.4
./composer.json has been updated
Running composer update typo3/cms-core typo3/cms-about
Loading composer repositories with package information
Updating dependencies
Lock file operations: 63 installs, 0 updates, 0 removals
  - Locking cogpowered/finediff (0.3.1)
  ...
  - Locking typo3/class-alias-loader (v1.1.3)
  - Locking typo3/cms-about (v10.4.20)
  - Locking typo3/cms-cli (2.0.0)
  - Locking typo3/cms-composer-installers (v3.1.2)
  - Locking typo3/cms-core (v10.4.20)
  - Locking typo3/html-sanitizer (v2.0.13)
  ...
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 63 installs, 0 updates, 0 removals
  - Installing typo3/cms-composer-installers (v3.1.2): Extracting archive
  ...
  - Installing cogpowered/finediff (0.3.1): Extracting archive
  - Installing typo3/cms-core (v10.4.20): Extracting archive
  - Installing typo3/cms-about (v10.4.20): Extracting archive
6 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
Generating class alias map file

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM