class Athena::DependencyInjection::ServiceContainer

Overview

Where the instantiated services live.

If a service is public, a getter based on the service's name as well as its type is defined. Otherwise, services are only available via constructor DI.

TODO Reduce the amount of duplication when this issue is resolved.

Defined in:

service_container.cr

Constructors

Constructor Detail

def self.new #

Initializes the container. Auto registering annotated services.


[View source]