Cannot apply patch to commerce_saferpay 8.x-1.1
There's something wrong with your service definition or how you call it.
My problem was that my services file had the extension .yaml instead of .yml
🐛 | Drupal core | Permission rename in <module_name>.permissions.yml leads to "RuntimeException: Adding non-existent permissions to a role is not allowed" error
Yes, it's the same problem
🐛 | Drupal core | Permission rename in <module_name>.permissions.yml leads to "RuntimeException: Adding non-existent permissions to a role is not allowed" error
kipras729 → created an issue.
Missed the absolutely crucial import (that chatGPT got misled on too):
use Drupal\rest\Attribute\RestResource;
and also didn't show use Drupal\Core\StringTranslation\TranslatableMarkup; for some reason.