1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

apcu functions namespace

This commit is contained in:
Robin Appelman 2019-01-23 19:05:28 +01:00
commit 36efe4f1e3
2 changed files with 6 additions and 6 deletions

View file

@ -29,17 +29,17 @@ class TempController extends BaseController {
}
public function register(string $key, string $path): string {
apcu_store($key, $path);
\apcu_store($key, $path);
return $this->webRoot . $key;
}
public function unregister(string $key) {
apcu_dec($key);
\apcu_dec($key);
}
public function serve(string $key) {
$path = apcu_fetch($key);
$path = \apcu_fetch($key);
if ($path) {
$handle = fopen($path, 'r');
fpassthru($handle);