mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOC add a callout to the deprecation notice
This seems more inline with other docs pages I have seen.
This commit is contained in:
parent
eaadd40c3b
commit
c3499d20e5
@ -6,8 +6,11 @@ summary: Create objects for modifying request and response objects across contro
|
||||
# HTTP Middlewares
|
||||
|
||||
HTTP Middlewares allow you to put code that will run before or after. 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
|
||||
|
Loading…
Reference in New Issue
Block a user