annotation HardWire::Tags

Overview

Attach this annotation to a #initialize function to indicate which tags this method needs to resolve for each dependency.

@[HardWire::Tags(db_service: "secondary,primary")]
def initialize(db_service : DbService)

Use keys that match the arguments you're trying to inject, and csv-strings for tags

Defined in:

hardwire.cr