Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain custom middleware registration in the README #575

Conversation

danhodge
Copy link

This documentation would have saved me a few minutes the first time I needed to create my own custom middleware.

@iMacTia
Copy link
Member

iMacTia commented Oct 18, 2016

Hi @danhodge thanks for pointing this out.
I agree our documentation is lacking some basic explanation. Good news is that we're going to fix this with the new big release, together with a revamped Wiki.

Appreciating your input, I'm going to close this as it will be part of that revision (see #620).

@iMacTia iMacTia closed this Oct 18, 2016
@mislav
Copy link
Contributor

mislav commented Oct 20, 2016

@danhodge I don't think middleware should necessarily use the register_middleware mechanism. If you define your own custom middleware, you can just use the constant directly:

conn.use MyMiddleware

I think we'll be documenting that approach first and foremost on the wiki.

@technoweenie technoweenie mentioned this pull request Mar 20, 2019
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants