Example #1
0
 def configure(self, binder):
     binder.bind(ch.Person, to=ch.EvilPerson)
Example #2
0
 def configure(self, binder):
     binder.bind(ch.Person, annotated_with='good', to=ch.GoodPerson)
Example #3
0
 def configure(self, binder):
     binder.bind(ch.Person, annotated_with="good", to=ch.GoodPerson)
Example #4
0
 def configure(self, binder):
     binder.bind(ch.Person, to=ch.EvilPerson)
Example #5
0
 def configure(self, binder):
     binder.bind_scope(this.CustomScope, this.CustomScope())
     binder.bind(ch.Person, to=ch.EvilPerson)