Page MenuHomestyx hydra

AlmanacKeys.php
No OneTemporary

AlmanacKeys.php

<?php
final class AlmanacKeys extends Phobject {
public static function getKeyPath($key_name) {
$root = dirname(phutil_get_library_root('phabricator'));
$keys = $root.'/conf/keys/';
return $keys.ltrim($key_name, '/');
}
public static function getDeviceID() {
$device_id_path = self::getKeyPath('device.id');
if (Filesystem::pathExists($device_id_path)) {
return trim(Filesystem::readFile($device_id_path));
}
return null;
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Apr 28, 7:20 PM (3 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1329219
Default Alt Text
AlmanacKeys.php (475 B)

Event Timeline