Merge pull request #9849 from edwilde/patch-3

DOC add a callout to the deprecation notice
This commit is contained in:
Stevie Mayhew 2021-02-15 10:51:32 +13:00 committed by GitHub
commit 38a62425f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,11 @@ summary: Create objects for modifying request and response objects across contro
# HTTP Middlewares
HTTP Middlewares allow you to add code that will run before or after a request has been delegated to the router. These might be used for
authentication, logging, caching, request processing, and many other purposes. Note this interface
replaces the SilverStripe 3 interface [RequestFilter](api:SilverStripe\Control\RequestFilter), which still works but is deprecated.
authentication, logging, caching, request processing, and many other purposes.
[notice]
Note this interface replaces the SilverStripe 3 interface [RequestFilter](api:SilverStripe\Control\RequestFilter), which still works but is deprecated.
[/notice]
To create a middleware class, implement `SilverStripe\Control\Middleware\HTTPMiddleware` and define the
`process(HTTPRequest $request, callable $delegate)` method. You can do anything you like in this