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
83 stars 2 forks source link

Refactor configurator #23

Closed jenky closed 10 months ago

jenky commented 10 months ago

Description

The register method was introduced to streamline middleware registration, improving extendability and encapsulation while allowing middleware to be added as closures which are lazily invoked during connector configuration. This change leads to cleaner code and a more scalable configuration pattern.

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (720ccc8) 84.61% compared to head (3dda935) 84.77%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #23 +/- ## ============================================ + Coverage 84.61% 84.77% +0.15% + Complexity 314 313 -1 ============================================ Files 38 38 Lines 728 729 +1 ============================================ + Hits 616 618 +2 + Misses 112 111 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.