DumpDataCollector
class DumpDataCollector extends DataCollector implements DataDumperInterface
Properties
| protected | $data | from DataCollector |
Methods
| serialize() | ||
| unserialize($data) | ||
| Data | cloneVar(mixed $var) Converts the variable into a serializable Data instance. | from DataCollector |
| callable[] | getCasters() | from DataCollector |
| __construct(Stopwatch $stopwatch = null, $fileLinkFormat = null, string $charset = null, RequestStack $requestStack = null, $dumper = null) | ||
| __clone() | ||
| dump(Data $data) | ||
| collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. | ||
| reset() Resets this data collector to its initial state. | ||
| getDumpsCount() | ||
| getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1) | ||
| string | getName() Returns the name of the collector. | |
| __destruct() |
Details
serialize()
unserialize($data)
Parameters
| $data |
protected Data cloneVar(mixed $var)
Converts the variable into a serializable Data instance.
This array can be displayed in the template using the VarDumper component.
Parameters
| mixed | $var |
Return Value
| Data |
protected callable[] getCasters()
Return Value
| callable[] | The casters to add to the cloner |
__construct(Stopwatch $stopwatch = null, $fileLinkFormat = null, string $charset = null, RequestStack $requestStack = null, $dumper = null)
Parameters
| Stopwatch | $stopwatch | |
| $fileLinkFormat | ||
| string | $charset | |
| RequestStack | $requestStack | |
| $dumper |
__clone()
dump(Data $data)
Parameters
| Data | $data |
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response.
Parameters
| Request | $request | |
| Response | $response | |
| Exception | $exception |
reset()
Resets this data collector to its initial state.
getDumpsCount()
getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)
Parameters
| $format | ||
| $maxDepthLimit | ||
| $maxItemsPerDepth |
string getName()
Returns the name of the collector.
Return Value
| string | The collector name |
__destruct()
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.html