interface ProfilerStorageInterface

ProfilerStorageInterface.

This interface exists for historical reasons. The only supported implementation is FileProfilerStorage.

As the profiler must only be used on non-production servers, the file storage is more than enough and no other implementations will ever be supported.

Methods

array
find(string|null$ip,string|null$url,int|null$limit,string|null$method,int$start =null,int$end =null,string$statusCode =null,Closure$filter =null)

Finds profiler tokens for the given criteria.

Profile|null
read(string$token)

Reads data associated with the given token.

bool
write(Profile$profile)

Saves a Profile.

void
purge()

Purges all data from the database.

Details

array find(string|null$ip,string|null$url,int|null$limit,string|null$method,int$start =null,int$end =null,string$statusCode =null,Closure$filter =null)

Finds profiler tokens for the given criteria.

Parameters

string|null $ip
string|null $url
int|null $limit
string|null $method
int $start
int $end
string $statusCode
Closure $filter

Return Value

array

Profile|null read(string$token)

Reads data associated with the given token.

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

Parameters

string $token

Return Value

Profile|null

bool write(Profile$profile)

Saves a Profile.

Parameters

Profile $profile

Return Value

bool

void purge()

Purges all data from the database.

Return Value

void