SessionRepository
in package
Class SessionRepository
Table of Contents
- $path : Path
- $postfixGenerator : SessionNamePostfixGenerator
- __construct() : mixed
- SessionRepository constructor.
- getNamePostfix() : string
- createAndReturnPostfix() : string
- Creates a new postfix file and returns the postfix string.
- removeAdditionalPostfixFiles() : void
- Deletes any additional postfix files.
Properties
$path
private
Path
$path
$postfixGenerator
private
SessionNamePostfixGenerator
$postfixGenerator
Methods
__construct()
SessionRepository constructor.
public
__construct(SessionNamePostfixGenerator $postfixGenerator, Path $path) : mixed
Parameters
- $postfixGenerator : SessionNamePostfixGenerator
- $path : Path
Return values
mixed —getNamePostfix()
public
getNamePostfix(string $host, string $webPath, string $serverPath) : string
Parameters
- $host : string
- $webPath : string
- $serverPath : string
Return values
string —createAndReturnPostfix()
Creates a new postfix file and returns the postfix string.
private
createAndReturnPostfix(string $identifier, string $path) : string
Parameters
- $identifier : string
- $path : string
Return values
string —removeAdditionalPostfixFiles()
Deletes any additional postfix files.
private
removeAdditionalPostfixFiles(array<string|int, mixed> $postfixFiles) : void
Parameters
- $postfixFiles : array<string|int, mixed>