mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
22 lines
488 B
PHP
22 lines
488 B
PHP
<?php
|
|
|
|
namespace Grocy\Services;
|
|
|
|
use \Grocy\Services\DatabaseService;
|
|
use \Grocy\Services\LocalizationService;
|
|
|
|
class BaseService
|
|
{
|
|
public function __construct() {
|
|
$this->DatabaseService = new DatabaseService();
|
|
$this->Database = $this->DatabaseService->GetDbConnection();
|
|
|
|
$localizationService = new LocalizationService(GROCY_CULTURE);
|
|
$this->LocalizationService = $localizationService;
|
|
}
|
|
|
|
protected $DatabaseService;
|
|
protected $Database;
|
|
protected $LocalizationService;
|
|
}
|