Needs work
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2014 at 20:16 UTC
Updated:
30 Jan 2023 at 20:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
xanoComment #2
xanoThis patch deletes the script and adds test coverage.
Comment #3
jibranWorks fine with #2242947-37: Integrate Symfony Console component to natively support command line operations.
Comment #4
jmolivas commentedSince we have been working on this contributed project http://drupalconsole.com/ there is already code that could be reused on core or contributed space to facilitate the use of Console component in order to enable Drupal users to create commands easily.
Feel free to ping me or any console maintainers for help writing this commands.
Comment #5
jibranComment #7
chx commentedThis version works fine as it is. It doesn't contain a lot from above (except the reflection invoke), it follows the structure of dump-database-d8-mysql and steals the bootstrap code from it.
Disclaimer: this is not an endorsement of using Symfony Console much less the drupalconsole project. It's part of a "revisit before release candidate" issue so that's why I bother.
Comment #8
dawehnerI was looking at at https://github.com/symfony/Console/blob/master/Tester/CommandTester.php but it seems to just add value in case you have complex commands, like ones with input from actual users ... which is out of scope of this particular issue, but you know, we could in the future hide the input of the users from the command line, instead of requiring
the plain text password to appear in the bash history, and then the CommandTester would help ... but for now this looks good to go.
Note: The test helper uses ->run() which is a public function but needs a bit more of input first.
Comment #9
chx commentedNote: I am not working on this issue since #2322877-5: Remove password-hash.sh and rebuild_token_calculator.sh. I offer help, if it's not wanted, no worries.
Comment #14
dawehnerAs of symfony 3.x we can get rid of at least one level of indirection. Note: We could get rid of the command itself, but then the command files would no longer be reusable.
Comment #18
alexpottI think we should deprecate in 8 rather than remove in Drupal 8
<3 tests at last!
Comment #25
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.