Unbug Lee
Unbug Lee
You guys comments are so crazy, hmmm.
 有思考就有收获
In this case, you should use a Middleware object, you could access any context from an object.
Actually you could. You could inject a context to the arguments in the first middleware function since the arguments get passed though to all middleware functions. Yes, write a middleware...
It will make sense if you think in middleware. But there's another option, you could assign the context to your `funciton.prototype.context`. So you can totally control your middlewares. This is...
Sorry @davearata-snorack , I prefer not to take advantage of the params. I suggest you could do : ``` Object.getOwnPropertyNames(Person.prototype).forEach(method => { if(method !== 'constructor') { middlewareManager.use(method, logger); } });
Sorry @DinkoMiletic , I just got back from vacation. Middlewares are sequential, if you add middleware2 before middleware1, the middleware2 will be run first. If you don't want to change...
Hum, please follow the doc to use Middleware object https://github.com/unbug/js-middleware#middleware-object
Feel free to contribute your changes though.
和添加到 WebStorm 类似 https://github.com/unbug/codelf/issues/24