mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
28 lines
472 B
PHP
28 lines
472 B
PHP
<?php
|
|
|
|
namespace Grocy\Services;
|
|
|
|
use \Grocy\Services\DatabaseService;
|
|
use \Grocy\Services\LocalizationService;
|
|
|
|
class BaseService
|
|
{
|
|
public function __construct() {
|
|
}
|
|
|
|
protected function getDatabaseService()
|
|
{
|
|
return DatabaseService::getInstance();
|
|
}
|
|
|
|
protected function getdatabase()
|
|
{
|
|
return $this->getDatabaseService()->GetDbConnection();
|
|
}
|
|
|
|
protected function getLocalizationService()
|
|
{
|
|
return LocalizationService::getInstance(GROCY_CULTURE);
|
|
}
|
|
}
|