From e3ece87780b372c478e24f5a98745c2ef9c9be54 Mon Sep 17 00:00:00 2001 From: Faraz Samapoor Date: Wed, 26 Jul 2023 16:01:41 +0330 Subject: [PATCH] Update middlewares.rst The plural of middleware is middleware. Signed-off-by: Faraz Samapoor --- developer_manual/basics/middlewares.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/developer_manual/basics/middlewares.rst b/developer_manual/basics/middlewares.rst index 6a38da9c1..88f593753 100644 --- a/developer_manual/basics/middlewares.rst +++ b/developer_manual/basics/middlewares.rst @@ -4,7 +4,7 @@ Middlewares .. sectionauthor:: Bernhard Posselt -Middleware is logic that is run before and after each request and is modelled after `Django's Middleware system `_. It offers the following hooks: +Middleware is logic that is run before and after each request and is modeled after `Django's Middleware system `_. It offers the following hooks: * ``beforeController``: This is executed before a controller method is being executed. This allows you to plug additional checks or logic before that method, like for instance security checks * ``afterException``: This is being run when either the beforeController method or the controller method itself is throwing an exception. The middleware is asked in reverse order to handle the exception and to return a response. If the middleware can't handle the exception, it throws the exception again @@ -76,7 +76,7 @@ Global Middlewares .. versionadded:: 26 -Registered middlewares will only intercept requests of the same app by default. To make a middleware *global* and trigger for other apps' middlewares, add `true` as second argument of the ``registerMiddleware`` call: +Registered middleware will only intercept requests of the same app by default. To make a middleware *global* and trigger for other apps' middleware, add `true` as the second argument of the ``registerMiddleware`` call: .. code-block:: php :caption: lib/AppInfo/Application.php @@ -113,7 +113,7 @@ Dependency Injection Container Registration .. deprecated:: 20 -Middlewares can also be added using the **registerMiddleware** method of the container: +Middleware can also be added using the **registerMiddleware** method of the container: .. code-block:: php :caption: lib/AppInfo/Application.php