mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
19 lines
348 B
PHP
19 lines
348 B
PHP
<?php
|
|
|
|
namespace Grocy\Controllers;
|
|
|
|
use Grocy\Services\DatabaseService;
|
|
|
|
class BaseController
|
|
{
|
|
public function __construct(\Slim\Container $container) {
|
|
$this->AppContainer = $container;
|
|
|
|
$databaseService = new DatabaseService();
|
|
$this->Database = $databaseService->GetDbConnection();
|
|
}
|
|
|
|
protected $AppContainer;
|
|
protected $Database;
|
|
}
|