function SystemDceSecurityProvider::getSystemUid
Returns the UID from the system
1 call to SystemDceSecurityProvider::getSystemUid()
- SystemDceSecurityProvider::getUid in vendor/
ramsey/ uuid/ src/ Provider/ Dce/ SystemDceSecurityProvider.php - @inheritDoc
File
-
vendor/
ramsey/ uuid/ src/ Provider/ Dce/ SystemDceSecurityProvider.php, line 102
Class
- SystemDceSecurityProvider
- SystemDceSecurityProvider retrieves the user or group identifiers from the system
Namespace
Ramsey\Uuid\Provider\DceCode
private function getSystemUid() : string {
if (!$this->hasShellExec()) {
return '';
}
return match ($this->getOs()) { 'WIN' => $this->getWindowsUid(),
default => trim((string) shell_exec('id -u')),
};
}