diff --git a/src/app.php b/src/app.php index a61a84a..2a536c7 100644 --- a/src/app.php +++ b/src/app.php @@ -103,12 +103,10 @@ class app { return unserialize($params); } - static function get_profile(): string { - return self::get()->getProfile(); - } - - static function is_production_mode(): bool { - return self::get()->isProductionMode(); + static function get_profile(?bool &$productionMode=null): string { + $app = self::get(); + $productionMode = $app->isProductionMode(); + return $app->getProfile(); } static function set_profile(?string $profile=null, ?bool $productionMode=null): void {