db_query() should be replaced
dpovshed created an issue. See original summary.
Proposed patch attached.
Maybe we need to use Drupal\Core\Database\Database::getConnection() insteed \Drupal::database() But Looks good
There's no strict way, still discussion in #2991337: Document the recommended ways to obtain the database connection object But here it's totally fine to use current container's service for database
unassigned by maintainer's request
Crediting @Shefarik for the code review
Issue #3072415 by dpovshed, Shefarik: Replace obsolete db_query function...
Committed and pushed to 8.x-1.x, thank you all!
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #2
dpovshed commentedProposed patch attached.
Comment #3
dpovshed commentedComment #4
sershevchykMaybe we need to use Drupal\Core\Database\Database::getConnection() insteed \Drupal::database()
But Looks good
Comment #5
sershevchykComment #6
andypostThere's no strict way, still discussion in #2991337: Document the recommended ways to obtain the database connection object
But here it's totally fine to use current container's service for database
Comment #7
dpovshed commentedunassigned by maintainer's request
Comment #8
valthebaldCrediting @Shefarik for the code review
Comment #10
valthebaldCommitted and pushed to 8.x-1.x, thank you all!