From fd6bd4c73d81498df493538d09171a854f1307f1 Mon Sep 17 00:00:00 2001 From: Androlax2 <39646949+Androlax2@users.noreply.github.com> Date: Mon, 28 Mar 2022 15:28:02 +0200 Subject: [PATCH] Add parameters Add parameters to the helpers functions, so the developer can know what is going on when using an IDE --- src/functions.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/functions.php b/src/functions.php index 92043dd..79cb3cc 100644 --- a/src/functions.php +++ b/src/functions.php @@ -3,49 +3,49 @@ use Rareloop\Lumberjack\Helpers; if (!function_exists('app')) { - function app() + function app($key = null) { return call_user_func_array([Helpers::class, 'app'], func_get_args()); } } if (!function_exists('config')) { - function config() + function config($key, $default = null) { return call_user_func_array([Helpers::class, 'config'], func_get_args()); } } if (!function_exists('view')) { - function view() + function view($template, $context = [], $statusCode = 200, $headers = []) { return call_user_func_array([Helpers::class, 'view'], func_get_args()); } } if (!function_exists('route')) { - function route() + function route($name, $params = []) { return call_user_func_array([Helpers::class, 'route'], func_get_args()); } } if (!function_exists('redirect')) { - function redirect() + function redirect($url, $statusCode = 302, $headers = []) { return call_user_func_array([Helpers::class, 'redirect'], func_get_args()); } } if (!function_exists('report')) { - function report() + function report(Exception $e) { return call_user_func_array([Helpers::class, 'report'], func_get_args()); } } if (!function_exists('session')) { - function session() + function session($key = null, $default = null) { return call_user_func_array([Helpers::class, 'session'], func_get_args()); } @@ -66,7 +66,7 @@ function request() } if (!function_exists('logger')) { - function logger() + function logger($message = null, $context = []) { return call_user_func_array([Helpers::class, 'logger'], func_get_args()); }