Add a weight to the processors, so we can sort when they're being executed

Created on 18 August 2020, about 4 years ago
Updated 30 August 2024, 3 months ago

Problem/Motivation

I was unable to make sure one hook was called after the other.

Steps to reproduce

Create multiple plugins and try to arrange them in order (using original module weights)

Proposed resolution

Adjust the annotation to include a weight, which also allows for multiple plugins per module to be sorted correctly.

Remaining tasks

  • Review the code.
  • Write a test for this.

API changes

Adds a weight to the Annotation, with a default of 0, this should not impose breaking changes.

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇳🇱Netherlands RicardoPeters

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024