- Issue created by @olekstkach
- 🇧🇷Brazil dungahk Balneário Camboriú
Hi,
This report is for the TFA module, not the diff module.
- 🇺🇸United States cmlara
Can you advise what version of Drupal Core and Drush are involved (as well as confirm the TFA version? I am trying to determine how high I need to prioritize this issue.
I see we have not updated the Drush commands to use the create() method. There is work that has to be done here however even with Drush 13.3 I am not able to reproduce the error.
This could possibly be an update from 1.6 issue as the extra service was added in 1.7. Drush sometimes is unable to fully purge its caches requiring using core/rebuild.php, although I'm not sure if that would resolve this with the service in the Drush container.
The only other scenario I can think of for why I can not reproduce this is that the Drush developers have reported in the past if the cache is cleared via the UI the drush.services.yml will not be reloaded which might cause this.
All that is an aside as to be "future proof" we would want to use create() for the
tfa.commands
service as drush.service.yml was suppose to be removed in 13.0. https://www.drush.org/11.x/dependency-injection/#create-methodFor
tfa.token_manager
I'm on the fence, This service is only useful to Drush, I would prefer not to pollute the Global container, though equally avoiding doing so may be excessively complex. The primary reason for the service existence is unit testing.As an aside to help your contributions gain acceptance on TFA and other projects:
Drupal.Org has dropped the ability to work with patch files. Contributions need to use MR's going forward to be tested. More details can be found at https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr... →