annotation HardWire::Tags

Overview

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

This annotation takes a key-value set of arguments matching argument names to tags.

# resolve the db_service with tag "secondary"
@[HardWire::Tags(db_service: "secondary")]
def initialize(db_service : DbService)

Defined in:

hardwire.cr