Problem/Motivation

Affected plugins:

Issue fork lms-3467547

Command icon Show commands

Start 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

graber created an issue. See original summary.

claudiu.cristea’s picture

Assigned: Unassigned » claudiu.cristea

I can work on this

claudiu.cristea’s picture

Assigned: claudiu.cristea » Unassigned
Status: Active » Needs review

Done:

  • Bumped minimum Drupal version to 10.3
  • Configured GitLab CI to run tests in 3 scenarions:
    • PHP 8.1, Drupal 10.3
    • PHP 8.1, Drupal 10.4
    • PHP 8.3, Drupal 10.3
  • Converted annotations to attributes, where possible
  • Used autowiring and autoconfiguration (this should be extended in the future)
  • Updated dev instance https://github.com/graber-1/drupal_lms_ddev/pull/1
graber’s picture

Autowiring is interesting indeed, introducing it here is a step forward, not sure though if adding too many new things will not frighten other potential contributors.. Let's leave it with the most complex code that not many will decide to touch anyway, at least until it's used more widely in the contrib world.

claudiu.cristea’s picture

Well, I think a simpler code is more appealing for contributors. Also, the module is still in very early stage, it could be a good place to learn to use the modern tools offered by Drupal >=10.3

graber’s picture

Sigh.. added some autowiring performance improvements with lazy instantiation. Looks like this is the way to go and there's no stopping it ;)
I think enough for this issue though.

claudiu.cristea’s picture

Looks good to me. It was just a start in regards of autowiring :)

graber’s picture

Status: Needs review » Fixed
catch’s picture

Looked at this retrospectively: looks great to me, nice to get rid of so much boilerplate.

Status: Fixed » Closed (fixed)

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