From 62bb39f0034ab8b20b9ecee687995394f8bd7db0 Mon Sep 17 00:00:00 2001 From: bgokcol Date: Sat, 28 Nov 2020 12:06:45 +0300 Subject: [PATCH] Fix too few arguments error --- src/bb-modules/Example/Controller/Admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-modules/Example/Controller/Admin.php b/src/bb-modules/Example/Controller/Admin.php index 076d1adae..0f6a33ac3 100644 --- a/src/bb-modules/Example/Controller/Admin.php +++ b/src/bb-modules/Example/Controller/Admin.php @@ -111,7 +111,7 @@ class Admin implements \Box\InjectionAwareInterface return $app->render('mod_example_index', $params); } - public function get_api(\Box_App $app, $id) + public function get_api(\Box_App $app, $id = null) { // always call this method to validate if admin is logged in $api = $this->di['api_admin'];