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

docs(tutorial): note depreciation of global hooks #557

Merged
merged 2 commits into from
Jul 14, 2015

Conversation

hpincket
Copy link
Contributor

  • remove global hook code example
  • add mention of middleware
  • add reference link to middleware

- remove global hook code example
- add mention of middleware
- add reference link to middleware
@jmvrbanac
Copy link
Member

👍

.. code:: python

falcon.API(before=[extract_project_id])
initializer, though this has been depreciated in favor of middleware.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it may be even better to simply not mention how hooks can be applied globally, specifically:

  • In L551, remove the "or even globally" clause.
  • In L561-L563, say something about how logic can also be applied globally using middleware (with no mention of global hooks)

Typo: "depreciated" ==> "deprecated"

@kgriffs
Copy link
Member

kgriffs commented Jul 2, 2015

@hpincket Just following up to get your thoughts on my inline comment?

* In L551, remove the "or even globally" clause.
* In L561-L563, remove reference to global hooks leaving middleware only
@hpincket
Copy link
Contributor Author

hpincket commented Jul 2, 2015

@kgriffs Ah, silly mistakes. I've made the suggested changes.

@kgriffs
Copy link
Member

kgriffs commented Jul 14, 2015

Looks good, thanks!

kgriffs added a commit that referenced this pull request Jul 14, 2015
docs(tutorial): note depreciation of global hooks
@kgriffs kgriffs merged commit 5826468 into falconry:master Jul 14, 2015
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.

3 participants