Files
grocy/middleware/BaseMiddleware.php

22 lines
500 B
PHP
Raw Permalink Normal View History

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;
use Psr\Http\Message\ResponseFactoryInterface;
2018-04-14 11:10:38 +02:00
class BaseMiddleware
{
public function __construct(Container $container, ResponseFactoryInterface $responseFactory)
{
$this->AppContainer = $container;
$this->ResponseFactory = $responseFactory;
$this->ApplicationService = ApplicationService::GetInstance();
2018-04-14 11:10:38 +02:00
}
protected $AppContainer;
protected $ResponseFactory;
protected $ApplicationService;
2018-04-14 11:10:38 +02:00
}