Skip to content
Corex

SettingsSaveFlash

Corex\Config\Settings\SettingsSaveFlash · class · Config layer

Carries a save’s result across the redirect that follows it (spec 119, US-SET-01, FR-006). The page used to answer the post itself, so reloading it offered to send the form again. Now the save redirects, and what it did waits here, for the person who saved, until that page is drawn.

keep(int $userId, SettingsSaveResult $result): void

Section titled “keep(int $userId, SettingsSaveResult $result): void”

take(int $userId, string $page): ?SettingsSaveResult

Section titled “take(int $userId, string $page): ?SettingsSaveResult”

The result for this person and this page, once; null when there is none.