2018-04-14 11:10:38 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Grocy\Middleware;
|
|
|
|
|
2020-08-31 20:40:31 +02:00
|
|
|
use Grocy\Services\ApplicationService;
|
2023-07-29 14:02:56 +02:00
|
|
|
use DI\Container;
|
2018-04-19 20:44:49 +02:00
|
|
|
|
2018-04-14 11:10:38 +02:00
|
|
|
class BaseMiddleware
|
|
|
|
{
|
2020-08-31 20:40:31 +02:00
|
|
|
protected $AppContainer;
|
|
|
|
protected $ApplicationService;
|
|
|
|
|
2023-07-29 14:02:56 +02:00
|
|
|
public function __construct(Container $container)
|
2018-04-19 20:44:49 +02:00
|
|
|
{
|
2018-04-18 19:03:39 +02:00
|
|
|
$this->AppContainer = $container;
|
2020-03-01 23:47:47 +07:00
|
|
|
$this->ApplicationService = ApplicationService::getInstance();
|
2018-04-14 11:10:38 +02:00
|
|
|
}
|
|
|
|
}
|