mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +02:00
NEW: Add HTMLMiddlewareAware trait to HTTPApplication, Director, and RequestHandler NEW: Allow service specs to be passed to Director rules. This refactor of the controller middlewares takes a service definition approach rather than a static-method-and-config approach that Director historically had. The use of a trait for middleware means that the Middlewares array property can be defined on RequestHandler, Director, and HTTPApplication objects in the same way.
20 lines
717 B
YAML
20 lines
717 B
YAML
---
|
|
Name: requestprocessors
|
|
---
|
|
SilverStripe\Core\Injector\Injector:
|
|
SilverStripe\Control\Director:
|
|
properties:
|
|
Middlewares:
|
|
TrustedProxyMiddleware: '%$SilverStripe\Control\TrustedProxyMiddleware'
|
|
AllowedHostsMiddleware: '%$SilverStripe\Control\AllowedHostsMiddleware'
|
|
SessionMiddleware: '%$SilverStripe\Control\SessionMiddleware'
|
|
RequestProcessor: '%$SilverStripe\Control\RequestProcessor'
|
|
FlushMiddleware: '%$SilverStripe\Control\FlushMiddleware'
|
|
|
|
SilverStripe\Control\AllowedHostsMiddleware:
|
|
properties:
|
|
AllowedHosts: "`SS_ALLOWED_HOSTS`"
|
|
SilverStripe\Control\TrustedProxyMiddleware:
|
|
properties:
|
|
TrustedProxyIPs: "`SS_TRUSTED_PROXY_IPS`"
|