mirror of
https://github.com/grocy/grocy.git
synced 2025-04-28 17:23:56 +00:00
24 lines
576 B
PHP
24 lines
576 B
PHP
<?php
|
|
|
|
namespace Grocy\Controllers;
|
|
|
|
use \Grocy\Services\CalendarService;
|
|
|
|
class CalendarController extends BaseController
|
|
{
|
|
public function __construct(\DI\Container $container)
|
|
{
|
|
parent::__construct($container);
|
|
$this->CalendarService = new CalendarService();
|
|
}
|
|
|
|
protected $CalendarService;
|
|
|
|
public function Overview(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
|
{
|
|
return $this->View->render($response, 'calendar', [
|
|
'fullcalendarEventSources' => $this->CalendarService->GetEvents()
|
|
]);
|
|
}
|
|
}
|