Skip to content
Corex

SiteScope

Corex\Multisite\SiteScope · interface · Core layer

Register a memoizing service for invalidation. Idempotent per instance.

run(int $siteId, Closure $callback): mixed

Section titled “run(int $siteId, Closure $callback): mixed”

Run the callback with the site current, restoring the previous site even if it throws.