ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
UserIdProviderProxy.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27{
28 public function getId(): int
29 {
30 global $DIC;
31 if ($DIC->isDependencyAvailable('user')) {
32 return $DIC->user()->getId();
33 }
34 throw new \RuntimeException('User dependency is not available in the DIC');
35 }
36}
global $DIC
Definition: shib_login.php:26