public function FileSystemCacheHandler::__construct in Auth0 Single Sign On 8.2
FileSystemCacheHandler constructor.
Parameters
string $temp_directory_prefix:
File
- vendor/
auth0/ auth0-php/ src/ Helpers/ Cache/ FileSystemCacheHandler.php, line 22
Class
Namespace
Auth0\SDK\Helpers\CacheCode
public function __construct($temp_directory_prefix = 'auth0-php') {
$this->tmp_dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . $temp_directory_prefix . DIRECTORY_SEPARATOR;
if (!is_dir($this->tmp_dir) && !@mkdir($this->tmp_dir, 0777, true) && !is_dir($this->tmp_dir)) {
trigger_error("Cache Handler was not able to create directory '{$this->tmp_dir}'", E_USER_WARNING);
}
}