mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 05:36:15 +02:00
fix bug where getUsersService is declared twice
This commit is contained in:
parent
b6be442fb9
commit
6d049185cf
|
|
@ -145,22 +145,7 @@ class BaseController
|
||||||
|
|
||||||
protected function getUserfieldsService()
|
protected function getUserfieldsService()
|
||||||
{
|
{
|
||||||
if($this->userfieldsService == null)
|
return UserfieldsService::getInstance();
|
||||||
{
|
|
||||||
$this->userfieldsService = new UserfieldsService();
|
|
||||||
}
|
|
||||||
return $this->userfieldsService;
|
|
||||||
}
|
|
||||||
|
|
||||||
private $usersService = null;
|
|
||||||
|
|
||||||
protected function getUsersService()
|
|
||||||
{
|
|
||||||
if($this->usersService == null)
|
|
||||||
{
|
|
||||||
$this->usersService = new UsersService();
|
|
||||||
}
|
|
||||||
return $this->usersService;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $AppContainer;
|
protected $AppContainer;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user