Closed (fixed)
Project:
Mailer Plus (DSM+)
Version:
1.4.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2024 at 01:20 UTC
Updated:
5 Feb 2025 at 14:39 UTC
Jump to comment: Most recent
<module-name>/src/Drush/<Commands|Generators> directory. The Drush subdirectory is a new requirement. (https://www.drush.org/12.x/commands/)<module-name>/drush.services.yml is deprecated and will be ignored in Drush 13 (https://www.drush.org/12.x/dependency-injection/) Commands directory into a Drush directoryMailerCommandscreate() methodsymfony_mailer.commands path in drush.services.ymlStart within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
macsim commentedComment #4
macsim commentedComment #5
macsim commentedComment #6
macsim commentedNote: When we'll want to drop Drush 11 support, we'll just have to remove the
drush.services.ymlfile.Comment #7
adamps commentedGreat thanks. Did you test with both Drush 11 and 12?
> Note: When we'll want to drop Drush 11 support, we'll just have to remove the drush.services.yml file.
Please could you raise an issue?
Comment #8
adamps commentedAFAICS it works without this change in Drush 12. According to https://www.drush.org/12.x/commands/, the old way is deprecated in Drush 12 and will be removed in Drush 13. This change is still a good idea, it would be clearer to update the IS and title.
To prove this patch works I suggest that we need a version that removes the services file. We won't commit it however we can check that it's working.
Comment #9
macsim commented@AdamPS
Nope I didn't. I thought reviewers would do it.
I can but I would say that it should be done in a 1.5.x version which doesn't exist right now.
In this new module version, we should also add following lines to the
composer.json:Did you tried to use the command on 1.4.1 with drush 12?
Cause it should throw a "mailer:override command is undefined" error.
The doc says that
drush.services.ymlis deprecated in drush 12 and will be removed in Drush 13.But it also says that
Those changes are required to run a command with drush 12.
Comment #10
adamps commentedYes it is working fine for me.
Comment #11
adamps commentedComment #12
adamps commentedDrush 11 is no longer supported so we should remove drush.services.yml in this issue please.
Comment #13
adamps commentedEven better, let's autowire: https://www.drush.org/12.x/dependency-injection/#autowire
Comment #14
adamps commentedI fixed this as part of #3482392: Create separate module mailer_override thanks for the help