TranslationDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
- $data : array<string|int, mixed>|Data
- $cloner : mixed
- $translator : mixed
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getCountDefines() : int
- getCountFallbacks() : int
- getCountMissings() : int
- getLocale() : mixed
- getMessages() : array<string|int, mixed>|Data
- getName() : string
- {@inheritdoc}
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- computeCount() : mixed
- sanitizeCollectedMessages() : mixed
- sanitizeString() : mixed
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
mixed
$cloner
$translator
private
mixed
$translator
Methods
__construct()
public
__construct(DataCollectorTranslator $translator) : mixed
Parameters
- $translator : DataCollectorTranslator
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
getCountDefines()
public
getCountDefines() : int
Return values
intgetCountFallbacks()
public
getCountFallbacks() : int
Return values
intgetCountMissings()
public
getCountMissings() : int
Return values
intgetLocale()
public
getLocale() : mixed
getMessages()
public
getMessages() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|DatagetName()
{@inheritdoc}
public
getName() : string
Return values
stringlateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
reset()
{@inheritdoc}
public
reset() : mixed
cloneVar()
Converts the variable into a serializable Data instance.
protected
cloneVar(mixed $var) : Data
This array can be displayed in the template using the VarDumper component.
Parameters
- $var : mixed
Return values
DatagetCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner
computeCount()
private
computeCount(array<string|int, mixed> $messages) : mixed
Parameters
- $messages : array<string|int, mixed>
sanitizeCollectedMessages()
private
sanitizeCollectedMessages(array<string|int, mixed> $messages) : mixed
Parameters
- $messages : array<string|int, mixed>
sanitizeString()
private
sanitizeString(string $string[, int $length = 80 ]) : mixed
Parameters
- $string : string
- $length : int = 80