mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Revise session handling to prepare API authentication via token
This commit is contained in:
@@ -2,11 +2,16 @@
|
||||
|
||||
namespace Grocy\Middleware;
|
||||
|
||||
use \Grocy\Services\ApplicationService;
|
||||
|
||||
class BaseMiddleware
|
||||
{
|
||||
public function __construct(\Slim\Container $container) {
|
||||
public function __construct(\Slim\Container $container)
|
||||
{
|
||||
$this->AppContainer = $container;
|
||||
$this->ApplicationService = new ApplicationService();
|
||||
}
|
||||
|
||||
protected $AppContainer;
|
||||
protected $ApplicationService;
|
||||
}
|
||||
|
Reference in New Issue
Block a user