Use services instead of global functions

Created on 27 November 2016, over 8 years ago
Updated 18 March 2024, about 1 year ago

Problem/Motivation

Move potentual functions in .module and .inc files which are candidates for services to the services.yml. Hook implementations are the exception, they can remain in .module, but can use services to do the work.

Remaining tasks

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom zerolab

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇮Finland sokru

    Even the module has been on alpha, its Drupal 9+ branch has over 25k active installs, so I created a draft for change notice the site builders / developers might face with this update.

  • Status changed to Needs review about 1 year ago
  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    Not sure why this issue links to a github fork of this project and the link to the issue comment is dead. Apart from that not all can be moved to services and this needs to be addressed in more detail instead of quoting an issue comment from github (removed).

  • Status changed to Fixed about 1 year ago
  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    From taking a look into the list of already registered services and into the .module with 99% hooks, I think it can be closed. At least for the upcoming beta1 release. Feel free to re-open if you think there are left-overs to be moved over too for beta2.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024