From 3d51f8f735bd30137162b51305b2fb50f46a51ae Mon Sep 17 00:00:00 2001 From: Steve Ross Date: Fri, 19 Dec 2025 12:28:59 +0000 Subject: [PATCH] move restAPI class to utilities --- .../app/{API/Admin.php => Utilities/RestAPI.php} | 12 +++++++----- web/app/themes/badegg/functions.php | 1 - 2 files changed, 7 insertions(+), 6 deletions(-) rename web/app/themes/badegg/app/{API/Admin.php => Utilities/RestAPI.php} (78%) diff --git a/web/app/themes/badegg/app/API/Admin.php b/web/app/themes/badegg/app/Utilities/RestAPI.php similarity index 78% rename from web/app/themes/badegg/app/API/Admin.php rename to web/app/themes/badegg/app/Utilities/RestAPI.php index 37c10a0..406538c 100644 --- a/web/app/themes/badegg/app/API/Admin.php +++ b/web/app/themes/badegg/app/Utilities/RestAPI.php @@ -1,8 +1,8 @@ 'GET', - 'callback' => [ $this, 'container_width'], + 'callback' => [ $this, 'containerWidths'], 'permission_callback' => function(){ return true; }, ]); } - public function container_width() + public function containerWidths() { $containerWidths = [ [ 'label' => __('Auto', 'badegg'), 'value' => 0 ], diff --git a/web/app/themes/badegg/functions.php b/web/app/themes/badegg/functions.php index 9fade9c..bd0bfd7 100644 --- a/web/app/themes/badegg/functions.php +++ b/web/app/themes/badegg/functions.php @@ -57,7 +57,6 @@ autoload_psr4('PostTypes'); autoload_psr4('ACF'); autoload_psr4('Utilities'); autoload_psr4('Admin'); -autoload_psr4('API'); /*