31 lines
No EOL
594 B
PHP
31 lines
No EOL
594 B
PHP
<?php
|
|
|
|
use App\Enums\AppModeEnum;
|
|
|
|
if (! function_exists('is_mode_app')) {
|
|
function is_mode_app(): bool
|
|
{
|
|
return AppModeEnum::current()->isApp();
|
|
}
|
|
}
|
|
|
|
if (! function_exists('is_mode_saas')) {
|
|
function is_mode_saas(): bool
|
|
{
|
|
return AppModeEnum::current()->isSaas();
|
|
}
|
|
}
|
|
|
|
if (! function_exists('is_mode_demo')) {
|
|
function is_mode_demo(): bool
|
|
{
|
|
return AppModeEnum::current()->isDemo();
|
|
}
|
|
}
|
|
|
|
if (! function_exists('allows_logout')) {
|
|
function allows_logout(): bool
|
|
{
|
|
return AppModeEnum::current()->allowsLogout();
|
|
}
|
|
} |