mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 03:40:10 +00:00
Upgrade Slim Framework to v4 (closes #561)
This commit is contained in:
@@ -6,7 +6,7 @@ use \Grocy\Services\CalendarService;
|
||||
|
||||
class CalendarController extends BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->CalendarService = new CalendarService();
|
||||
@@ -14,9 +14,9 @@ class CalendarController extends BaseController
|
||||
|
||||
protected $CalendarService;
|
||||
|
||||
public function Overview(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Overview(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'calendar', [
|
||||
return $this->View->render($response, 'calendar', [
|
||||
'fullcalendarEventSources' => $this->CalendarService->GetEvents()
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user