In #Dotkernel, #Mezzio, and #SlimFramework that’s literally what modules/middlewares are when used correctly. https://docs.mezzio.dev/mezzio/v3/features/modular-applications/#module-structure https://fosstodon.org/@dantleech/115990600487740811