From 6d049185cfbfe7776f371d9845e3adab8292e0ee Mon Sep 17 00:00:00 2001 From: zebardy Date: Tue, 18 Feb 2020 22:46:31 +0000 Subject: [PATCH] fix bug where getUsersService is declared twice --- controllers/BaseController.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/controllers/BaseController.php b/controllers/BaseController.php index 1643db57..b47df852 100644 --- a/controllers/BaseController.php +++ b/controllers/BaseController.php @@ -145,22 +145,7 @@ class BaseController protected function getUserfieldsService() { - if($this->userfieldsService == null) - { - $this->userfieldsService = new UserfieldsService(); - } - return $this->userfieldsService; - } - - private $usersService = null; - - protected function getUsersService() - { - if($this->usersService == null) - { - $this->usersService = new UsersService(); - } - return $this->usersService; + return UserfieldsService::getInstance(); } protected $AppContainer;