phanxipang / fansipan

A simple package that allows you to write your API integrations or SDKs in a elegant way.
https://phanxipang.github.io/fansipan
MIT License
81 stars 2 forks source link

Revamp middleware #6

Closed jenky closed 1 year ago

jenky commented 1 year ago

Description

Middleware now only accept callable

Motivation and context

To make the api more simple and predictable, class-string is removed. Callable class is more flexible because it allows to pass constructor arguments.