Reorganize project part 3

This commit is contained in:
Bernd Bestel
2018-04-12 21:13:38 +02:00
parent 7dcd39f82f
commit 5a1d21ef31
86 changed files with 625 additions and 583 deletions

View File

@@ -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;