W3cubDocs

/Symfony 4.1

SourceContextProvider

class SourceContextProvider implements ContextProviderInterface

Tries to provide context from sources (class name, file, line, code excerpt, .

..).

Methods

__construct(string $charset = null, string $projectDir = null, FileLinkFormatter $fileLinkFormatter = null, int $limit = 9)
array|null getContext()

Details

__construct(string $charset = null, string $projectDir = null, FileLinkFormatter $fileLinkFormatter = null, int $limit = 9)

Parameters

string $charset
string $projectDir
FileLinkFormatter $fileLinkFormatter
int $limit

array|null getContext()

Return Value

array|null Context data or null if unable to provide any context