def register_middleware(self):
    self.application.make('middleware').add(self.route_middleware).add(self.http_middleware)
def register_middleware(self):
    self.application.make('middleware').add(self.route_middleware).add(self.http_middleware)