Reads data associated with the given token.
The method returns false if the token does not exists in the storage.
string $token A token:
Profile The profile associated with token
Overrides ProfilerStorageInterface::read
public function read($token) {
if (!$token || !file_exists($file = $this
->getFilename($token))) {
return null;
}
return $this
->createProfileFromData($token, unserialize(file_get_contents($file)));
}