class Repository
Stub implementation of Laravel's Log Context Repository.
Laravel 12's scheduling system expects this class to exist in the container as \Illuminate\Log\Context\Repository. Since Flarum uses a simplified logging setup with Monolog directly, we provide a minimal stub that returns empty context data. This is aliased to \Illuminate\Log\Context\Repository in the container. This is sufficient for Laravel 12 compatibility as Flarum doesn't use Laravel's context system for passing data between processes.
Methods
Details
at
line 40
bool
has(string $key)
Determine if the given key exists in the context.
at
line 48
bool
missing(string $key)
Determine if the given key is missing from the context.
at
line 56
array
all()
Get all context data.
at
line 64
mixed
get(string $key, mixed $default = null)
Get a context value.
at
line 72
Repository
add(string|array $key, mixed $value = null)
Add a context value.
at
line 86
Repository
addHidden(string|array $key, mixed $value = null)
Add a hidden context value.
at
line 100
Repository
forget(string|array $key)
Forget a context key.
at
line 114
Repository
forgetHidden(string|array $key)
Forget a hidden context key.
at
line 128
array
allHidden()
Get all hidden context data.
at
line 136
Repository
flush()
Flush all context data.
at
line 151
array
dehydrate()
Dehydrate the context data for serialization.
This method is called by Laravel's scheduler when passing context between processes. For Flarum, we return an empty array as we don't use Laravel's context system.
at
line 159
Repository
hydrate(array $context)
Hydrate the context from an array.
at
line 167
Repository
dehydrating(callable $callback)
Register a dehydrating callback.
at
line 175
Repository
hydrated(callable $callback)
Register a hydrated callback.