class UniqueHeadGateway implements ConfiguresSsrRequests, DisablesSsr, ExcludesSsrPaths, Gateway, HasHealthCheck

Methods

__construct(Gateway $gateway, HeadManager $head, HeadRenderer $renderer)

Create the SSR gateway decorator.

Response|null
dispatch(array $page)

Dispatch the page to the SSR engine, stripping the page-managed head elements from the response while preserving any other elements produced by JavaScript SSR.

void
disable(Closure|bool $condition)

Forward conditional SSR disabling to the decorated gateway.

void
except(array|string $paths)

Forward SSR path exclusions to the decorated gateway.

void
configureRequestUsing(Closure|null $callback = null)

Forward SSR request configuration to the decorated gateway.

bool
isHealthy()

Forward SSR health checks to the decorated gateway.

Details

at line 24
__construct(Gateway $gateway, HeadManager $head, HeadRenderer $renderer)

Create the SSR gateway decorator.

Parameters

Gateway $gateway
HeadManager $head
HeadRenderer $renderer

at line 38
Response|null dispatch(array $page)

Dispatch the page to the SSR engine, stripping the page-managed head elements from the response while preserving any other elements produced by JavaScript SSR.

Parameters

array $page

Return Value

Response|null

at line 58
void disable(Closure|bool $condition)

Forward conditional SSR disabling to the decorated gateway.

Parameters

Closure|bool $condition

Return Value

void

at line 72
void except(array|string $paths)

Forward SSR path exclusions to the decorated gateway.

Parameters

array|string $paths

Return Value

void

at line 84
void configureRequestUsing(Closure|null $callback = null)

Forward SSR request configuration to the decorated gateway.

Parameters

Closure|null $callback

Return Value

void

at line 96
bool isHealthy()

Forward SSR health checks to the decorated gateway.

Return Value

bool