Documentation

FileLinkFormatter
in package

Formats debug file links.

Tags
author

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

final

Table of Contents

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']
$baseDir  : mixed
$fileLinkFormat  : mixed
$requestStack  : mixed
$urlFormat  : mixed
__construct()  : mixed
format()  : mixed
getFileLinkFormat()  : mixed

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>|null $fileLinkFormat = null ][, RequestStack|null $requestStack = null ][, string|null $baseDir = null ][, string|Closure $urlFormat = null ]) : mixed
Parameters
$fileLinkFormat : string|array<string|int, mixed>|null = null
$requestStack : RequestStack|null = null
$baseDir : string|null = null
$urlFormat : string|Closure = null

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

Return values
mixed

format()

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

getFileLinkFormat()

private getFileLinkFormat() : mixed
Return values
mixed

Search results