Skip to content

Instantly share code, notes, and snippets.

@zentrope zentrope/system.clj Secret
Created Dec 8, 2015

Embed
What would you like to do?
system map
(defn make-system
[config]
(component/system-map
:mail-svc
(mail-svc/make (:mail config))
:data-svc
(data-svc/make (:db config))
:biz-svc
(component/using (biz-svc/make (:biz config))
{:db :data-svc
:mail :mail-svc})
:web-svc
(component/using (web-svc/make (:web config))
{:biz :biz-svc})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.