TractorCow\Fluent\Middleware\InitStateMiddleware
InitStateMiddleware initialises the FluentState object and sets the current request locale and domain to it
Synopsis
class InitStateMiddleware
implements
HTTPMiddleware
{
- // members
- private static array $admin_url_paths = ;
- // methods
- public void process()
- public bool getIsFrontend()
- public bool getIsDomainMode()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Implements
- SilverStripe\Control\Middleware\HTTPMiddleware
Members
private
- $admin_url_paths
—
array
URL paths that should be considered as admin only, i.e. not frontend
Methods
public
- getIsDomainMode() — Determine whether the website is running in domain segmentation mode
- getIsFrontend() — Determine whether the website is being viewed from the frontend or not
- process()