mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Reorganize project part 3
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use Grocy\Services\DatabaseService;
|
||||
use \Grocy\Services\DatabaseService;
|
||||
use \Grocy\Services\ApplicationService;
|
||||
|
||||
class BaseController
|
||||
{
|
||||
@@ -11,6 +12,9 @@ class BaseController
|
||||
|
||||
$databaseService = new DatabaseService();
|
||||
$this->Database = $databaseService->GetDbConnection();
|
||||
|
||||
$applicationService = new ApplicationService();
|
||||
$container->view->set('version', $applicationService->GetInstalledVersion());
|
||||
}
|
||||
|
||||
protected $AppContainer;
|
||||
|
Reference in New Issue
Block a user