yoomoney / cms-drupal8

YooKassa payment module for Drupal 8.x
https://yookassa.ru/developers
3 stars 6 forks source link

Не совместим с Drupal 9 #12

Closed superromeo closed 3 years ago

superromeo commented 3 years ago

Говорит:

Данная версия несовместима с Drupal 9.1.7-dev и должна быть заменена.

И действительно, в yookassa.info.yml видим:

core: 8.x

И как же быть?

ostulov commented 3 years ago

Добрый день!

На текущий момент наш модуль еще не поддерживает Drupal 9.x. Мы проверим работу модуля на новой версии Drupal и подготовим отдельный модуль.

ostulov commented 3 years ago

С версии модуля v2.1.0 мы добавили совместимость с Drupal 9.x

superromeo commented 2 years ago

Нет. Ошибка показывается всё так же. Из-за: core: 8.x

tonchik-tm commented 2 years ago

https://www.drupal.org/docs/creating-custom-modules/let-drupal-know-about-your-module-with-an-infoyml-file

Specifying the core_version_requirement when needed

The new core_version_requirement key in *.info.yml files for modules, themes, and profiles now supports semantic versioning as implemented by the Composer project. This allows modules, themes, and profiles to also specify that they are compatible with multiple major versions of Drupal core.

For example a module that is compatible with Drupal 8 and Drupal 9 can have a info.yml file like this

name: My Module
type: module
core: 8.x
core_version_requirement: ^8 || ^9

This specifies that the module is compatible with all versions of Drupal 8 and 9. The core: is required here because Drupal Core versions before 8.7.7 do not recognize the core_version_requirement: key.

Проверяли на версии Drupal 9.2.6 image

Попробуйте поставить модуль через composer.json:

...
"yoomoney/yookassa-sdk-php": "^2.0",
"drupal/commerce_yookassa": "^2.1",
...
superromeo commented 2 years ago

В 9.2.8-dev ошибка есть. И пропадает после удаления этой строчки.

superromeo commented 2 years ago

А если через композер с пакетом: "drupal/commerce_yookassa": "^2.1", ошибки нет. Странно.

superromeo commented 2 years ago

А почему бы не добавить "yoomoney/yookassa-sdk-php": "^2.0", в require?