Appearance
Helper global
| Fungsi | Keterangan |
|---|---|
container($name = null, $params = null) | Resolve service dari Core\Kernel::$container (atau container itu sendiri kalau $name null) |
module_url(string $path = '') | URL relatif terhadap prefix module aktif |
hashids(?string $key = null), hashids_encode(...$n), hashids_decode($hash) | Encode/decode ID pendek (butuh app/config/hashids.php opsional: salt, minLength, alphabet) |
casdoor_user() | Klaim user hasil CasdoorAuth, null kalau tidak ada |
oauth2_user($provider = null) | Klaim user hasil OAuth2Auth, per-provider, null kalau tidak ada — default ke oauth2.default kalau $provider tidak diisi |
iam_user(), iam_can($resource, $action, $context = []) | Klaim/otorisasi hasil IamAuth |
auth_user(), auth_check() | User hasil SessionAuth/SessionAuthenticator |