Skip to content

Commit

Permalink
Merge pull request cakephp#5731 from ravage84/routing-middleware
Browse files Browse the repository at this point in the history
Routing middleware
  • Loading branch information
markstory authored May 9, 2018
2 parents db1c24c + de72b4e commit 38fcb5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions en/controllers/middleware.rst
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ application::
}
}


.. _routing-middleware:

Routing Middleware
==================

Expand Down
5 changes: 5 additions & 0 deletions en/development/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,11 @@ to specific routing scopes offers more flexibility, as you can apply middleware
only where it is needed allowing your middleware to not concern itself with
how/where it is being applied.

.. note::

Applied scoped middleware will be run by :ref:`RoutingMiddleware <routing-middleware>`,
normally at the end of your application's middleware queue.

Before middleware can be applied to a scope, it needs to be
registered into the route collection::

Expand Down

0 comments on commit 38fcb5b

Please sign in to comment.