mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Upgraded package php-di/php-di
This commit is contained in:
@@ -18,10 +18,11 @@ use Grocy\Services\StockService;
|
||||
use Grocy\Services\TasksService;
|
||||
use Grocy\Services\UserfieldsService;
|
||||
use Grocy\Services\UsersService;
|
||||
use DI\Container;
|
||||
|
||||
class BaseController
|
||||
{
|
||||
public function __construct(\DI\Container $container)
|
||||
public function __construct(Container $container)
|
||||
{
|
||||
$this->AppContainer = $container;
|
||||
$this->View = $container->get('view');
|
||||
|
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use DI\Container;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Slim\Exception\HttpException;
|
||||
@@ -11,7 +12,7 @@ use Throwable;
|
||||
|
||||
class ExceptionController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\App $app, \DI\Container $container)
|
||||
public function __construct(\Slim\App $app, Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->app = $app;
|
||||
|
Reference in New Issue
Block a user