Files
grocy/services/BaseService.php

22 lines
488 B
PHP
Raw Normal View History

2018-04-11 19:49:35 +02:00
<?php
namespace Grocy\Services;
2018-04-12 21:13:38 +02:00
use \Grocy\Services\DatabaseService;
2018-07-14 22:49:42 +02:00
use \Grocy\Services\LocalizationService;
2018-04-11 19:49:35 +02:00
class BaseService
{
public function __construct() {
$this->DatabaseService = new DatabaseService();
$this->Database = $this->DatabaseService->GetDbConnection();
2018-07-14 22:49:42 +02:00
2018-07-24 19:41:35 +02:00
$localizationService = new LocalizationService(GROCY_CULTURE);
2018-07-14 22:49:42 +02:00
$this->LocalizationService = $localizationService;
2018-04-11 19:49:35 +02:00
}
protected $DatabaseService;
protected $Database;
2018-07-14 22:49:42 +02:00
protected $LocalizationService;
2018-04-11 19:49:35 +02:00
}