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;
|
2026-04-19 20:57:57 +02:00
|
|
|
use Psr\Http\Message\ResponseFactoryInterface;
|
2018-04-19 20:44:49 +02:00
|
|
|
|
2018-04-14 11:10:38 +02:00
|
|
|
class BaseMiddleware
|
|
|
|
|
{
|
2026-04-19 20:57:57 +02:00
|
|
|
public function __construct(Container $container, ResponseFactoryInterface $responseFactory)
|
2018-04-19 20:44:49 +02:00
|
|
|
{
|
2018-04-18 19:03:39 +02:00
|
|
|
$this->AppContainer = $container;
|
2026-04-19 20:57:57 +02:00
|
|
|
$this->ResponseFactory = $responseFactory;
|
2026-04-20 22:46:47 +02:00
|
|
|
$this->ApplicationService = ApplicationService::GetInstance();
|
2018-04-14 11:10:38 +02:00
|
|
|
}
|
2026-04-19 20:57:57 +02:00
|
|
|
|
|
|
|
|
protected $AppContainer;
|
|
|
|
|
protected $ResponseFactory;
|
|
|
|
|
protected $ApplicationService;
|
2018-04-14 11:10:38 +02:00
|
|
|
}
|