preaction / Beam-Wire

A simple configuration and dependency injection container
Other
11 stars 10 forks source link

Beam::Wire::Service role #56

Closed preaction closed 7 years ago

preaction commented 8 years ago

Sometimes a service needs to know what its name is, and what container it came from. If we know our name, we can tell the user exactly where the problem is. If we have a container, we can pull other services out of the container (like a default logger service, or a default other service).

There is more potential for a circular reference here, too. We really ought to do something about that...