Documentation

ProfilerStorageInterface

ProfilerStorageInterface.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

find()  : array<string|int, mixed>
Finds profiler tokens for the given criteria.
purge()  : mixed
Purges all data from the database.
read()  : Profile|null
Reads data associated with the given token.
write()  : bool
Saves a Profile.

Methods

find()

Finds profiler tokens for the given criteria.

public find(string $ip, string $url, string $limit, string $method[, int|null $start = null ][, int|null $end = null ]) : array<string|int, mixed>
Parameters
$ip : string

The IP

$url : string

The URL

$limit : string

The maximum number of tokens to return

$method : string

The request method

$start : int|null = null

The start date to search from

$end : int|null = null

The end date to search to

Return values
array<string|int, mixed>

An array of tokens

read()

Reads data associated with the given token.

public read(string $token) : Profile|null

The method returns false if the token does not exist in the storage.

Parameters
$token : string

A token

Return values
Profile|null

The profile associated with token

Search results