def __call__(self, binder):
        """Configure the binder."""
        self.__injector__ = binder.injector
        for unused_name, function in inspect.getmembers(self, inspect.ismethod):
            binding = None
            if hasattr(function, '__binding__'):
                binding = function.__binding__
                binder.bind(
                    binding.interface, to=types.MethodType(binding.provider, self), scope=binding.scope
                )
        self.configure(binder)
def __call__ ( self , binder ) : self . __injector__ = binder . injector for unused_name , function in inspect . getmembers ( self , inspect . ismethod ) : binding = None if hasattr ( function , '__binding__' ) : binding = function . __binding__ binder . bind ( binding . interface , to = types . MethodType ( binding . provider , self ) , scope = binding . scope ) self . configure ( binder )
Configure the binder.