From 4cee0826786898ea6fbf18c40277588c20532657 Mon Sep 17 00:00:00 2001 From: Sergey Zakharchenko Date: Fri, 30 Jul 2021 20:05:18 +0300 Subject: [PATCH] Class App refactoring --- app/class-app.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/class-app.php b/app/class-app.php index 5be7d60..23610fc 100644 --- a/app/class-app.php +++ b/app/class-app.php @@ -2,20 +2,14 @@ namespace PCM; -use PCM\Interfaces\Singleton; +use PCM\Interfaces\Singleton as Singleton_Interface; use PCM\Managers\Columns_Manager; use PCM\Managers\Filters_Manager; -use PCM\Traits\Singleton as Trait_Singleton; -/** - * @method $this instance() - * */ -class App implements Singleton { +class App implements Singleton_Interface { - use Trait_Singleton; - - protected $field_objects; + use Traits\Singleton; public function init() { if ( ! is_admin() ) {