mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
24 lines
554 B
PHP
24 lines
554 B
PHP
<?php
|
|
|
|
namespace Grocy\Controllers;
|
|
|
|
use \Grocy\Services\CalendarService;
|
|
|
|
class CalendarController extends BaseController
|
|
{
|
|
public function __construct(\Slim\Container $container)
|
|
{
|
|
parent::__construct($container);
|
|
$this->CalendarService = new CalendarService();
|
|
}
|
|
|
|
protected $CalendarService;
|
|
|
|
public function Overview(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
|
{
|
|
return $this->AppContainer->view->render($response, 'calendar', [
|
|
'fullcalendarEventSources' => $this->CalendarService->GetEvents()
|
|
]);
|
|
}
|
|
}
|