mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
touch!
This commit is contained in:
parent
d8930af5ee
commit
039537ebe2
@ -57,7 +57,7 @@ class CryptKey
|
||||
{
|
||||
$keyPath = sys_get_temp_dir() . '/' . sha1($key) . '.key';
|
||||
|
||||
if (!file_exists($keyPath) && !mkdir($keyPath)) {
|
||||
if (!file_exists($keyPath) && !touch($keyPath)) {
|
||||
throw new \RuntimeException('"%s" key file could not be created', $keyPath);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user