PHP Class Clockwork\DataSource\DataSource

Inheritance: implements Clockwork\DataSource\DataSourceInterface
Show file Open project: itsgoingd/clockwork

Public Methods

Method Description
removePasswords ( array $data ) Censors passwords in an array, identified by key containing "pass" substring
replaceUnserializable ( array $data ) Replaces unserializable items such as closures, resources and objects in an array with textual representation
resolve ( Request $request ) Adds data to the request and returns it, custom implementation should be provided in child classes

Method Details

removePasswords() public method

Censors passwords in an array, identified by key containing "pass" substring
public removePasswords ( array $data )
$data array

replaceUnserializable() public method

Replaces unserializable items such as closures, resources and objects in an array with textual representation
public replaceUnserializable ( array $data )
$data array

resolve() public method

Adds data to the request and returns it, custom implementation should be provided in child classes
public resolve ( Request $request )
$request Clockwork\Request\Request