class MigratingSessionHandler implements \SessionHandlerInterface, \SessionUpdateTimestampHandlerInterface
{ private \SessionHandlerInterface&\SessionUpdateTimestampHandlerInterface
$currentHandler;
private \SessionHandlerInterface&\SessionUpdateTimestampHandlerInterface
$writeOnlyHandler;
public function __construct(\SessionHandlerInterface
$currentHandler, \SessionHandlerInterface
$writeOnlyHandler) { if (!
$currentHandler instanceof \SessionUpdateTimestampHandlerInterface
) { $currentHandler =
new StrictSessionHandler($currentHandler);
} if (!
$writeOnlyHandler instanceof \SessionUpdateTimestampHandlerInterface
) { $writeOnlyHandler =
new StrictSessionHandler($writeOnlyHandler);
} $this->currentHandler =
$currentHandler;
$this->writeOnlyHandler =
$writeOnlyHandler;
} public function close(): bool
{