Documentation

FileLinkFormatter
in package

Formats debug file links.

Tags
author

Jérémy Romey jeremy@free-agent.fr

final

Table of Contents

Constants

FORMATS  = ['textmate' => 'txmt://open?url=file://%f&line=%l', 'macvim' => 'mvim://open?url=file://%f&line=%l', 'emacs' => 'emacs://open?url=file://%f&line=%l', 'sublime' => 'subl://open?url=file://%f&line=%l', 'phpstorm' => 'phpstorm://open?file=%f&line=%l', 'atom' => 'atom://core/open/file?filename=%f&line=%l', 'vscode' => 'vscode://file/%f:%l']

Properties

$baseDir  : string|null
$fileLinkFormat  : array<string|int, mixed>|false
$requestStack  : mixed
$urlFormat  : Closure|string|null

Methods

__construct()  : mixed
format()  : mixed
getFileLinkFormat()  : array<string|int, mixed>|false

Constants

FORMATS

private mixed FORMATS = ['textmate' => 'txmt://open?url=file://%f&line=%l', 'macvim' => 'mvim://open?url=file://%f&line=%l', 'emacs' => 'emacs://open?url=file://%f&line=%l', 'sublime' => 'subl://open?url=file://%f&line=%l', 'phpstorm' => 'phpstorm://open?file=%f&line=%l', 'atom' => 'atom://core/open/file?filename=%f&line=%l', 'vscode' => 'vscode://file/%f:%l']

Properties

Methods

__construct()

public __construct([string|array<string|int, mixed> $fileLinkFormat = null ][, RequestStack $requestStack = null ][, string $baseDir = null ][, string|Closure $urlFormat = null ]) : mixed
Parameters
$fileLinkFormat : string|array<string|int, mixed> = null
$requestStack : RequestStack = null
$baseDir : string = null
$urlFormat : string|Closure = null

the URL format, or a closure that returns it on-demand

format()

public format(string $file, int $line) : mixed
Parameters
$file : string
$line : int

getFileLinkFormat()

private getFileLinkFormat() : array<string|int, mixed>|false
Return values
array<string|int, mixed>|false

        
On this page

Search results