final class LogFilePathResolver (View source)

Resolves built-in channels inside application storage and outside the public web root.

Methods

Binds canonical log paths to the active application context.

string
resolve(string $channel)

Returns a safe base filename after validating its storage and public-root boundaries.

string

Details

__construct

__construct(ApplicationContext $context)

Binds canonical log paths to the active application context.

Parameters

ApplicationContext $context

resolve

string resolve(string $channel)

Returns a safe base filename after validating its storage and public-root boundaries.

Parameters

string $channel

Return Value

string

Exceptions

LogStorageException