class EventsController extends AbstractController

Main Controller class

Properties

private EventsServiceInterface $eventsService Stores EventsServiceInterface
private ServiceSlugInterface $serviceSlug Stores ServiceSlugInterface

Methods

__construct(EventsServiceInterface $eventsService, ServiceSlugInterface $serviceSlug)

No description

Response
dashboard(Request $request, PaginatorInterface $paginator)

Displays the dashboard

Response
display(Event $eventObject, $slug)

Displays the Event using its unique id

Response
create(Request $request, ConfigServiceInterface $configService)

Creates the Event

Response
modify(Request $request, Event $eventObject, ConfigServiceInterface $configService, $slug)

Modifies the Event using its unique id

Response
duplicate(Request $request, Event $eventObject, ConfigServiceInterface $configService)

Duplicates the Event using its unique id

Response
delete(Request $request, Event $eventObject, $slug)

Marks the Event as deleted using its unique id

Response
config(Request $request, ConfigServiceInterface $configService)

Displays the configuration

Response
iCal(Event $eventObject, $slug)

Returns the iCal version of the Event using its unique id

redirectAll()

Redirects to events_all Route

Response
all()

Displays all the Events NOT finished

JsonResponse
slug($text)

Returns the slug corresponding to the text provided

Response
help()

Displays the help

Details

at line 47
__construct(EventsServiceInterface $eventsService, ServiceSlugInterface $serviceSlug)

Parameters

EventsServiceInterface $eventsService
ServiceSlugInterface $serviceSlug

at line 65
Response dashboard(Request $request, PaginatorInterface $paginator)

Displays the dashboard

Parameters

Request $request
PaginatorInterface $paginator

Return Value

Response

Exceptions

AccessDeniedException

at line 97
Response display(Event $eventObject, $slug)

Displays the Event using its unique id

Parameters

Event $eventObject
$slug

Return Value

Response

Exceptions

GoneHttpException
NotFoundHttpException

at line 129
Response create(Request $request, ConfigServiceInterface $configService)

Creates the Event

Parameters

Request $request
ConfigServiceInterface $configService

Return Value

Response

Exceptions

AccessDeniedException

at line 175
Response modify(Request $request, Event $eventObject, ConfigServiceInterface $configService, $slug)

Modifies the Event using its unique id

Parameters

Request $request
Event $eventObject
ConfigServiceInterface $configService
$slug

Return Value

Response

Exceptions

AccessDeniedException
NotFoundHttpException

at line 224
Response duplicate(Request $request, Event $eventObject, ConfigServiceInterface $configService)

Duplicates the Event using its unique id

Parameters

Request $request
Event $eventObject
ConfigServiceInterface $configService

Return Value

Response

Exceptions

AccessDeniedException
NotFoundHttpException

at line 271
Response delete(Request $request, Event $eventObject, $slug)

Marks the Event as deleted using its unique id

Parameters

Request $request
Event $eventObject
$slug

Return Value

Response

Exceptions

AccessDeniedException
NotFoundHttpException

at line 313
Response config(Request $request, ConfigServiceInterface $configService)

Displays the configuration

Parameters

Request $request
ConfigServiceInterface $configService

Return Value

Response

Exceptions

AccessDeniedException

at line 354
Response iCal(Event $eventObject, $slug)

Returns the iCal version of the Event using its unique id

Parameters

Event $eventObject
$slug

Return Value

Response

Exceptions

AccessDeniedException
NotFoundHttpException

at line 381
redirectAll()

Redirects to events_all Route

at line 394
Response all()

Displays all the Events NOT finished

Return Value

Response

at line 415
JsonResponse slug($text)

Returns the slug corresponding to the text provided

Parameters

$text

Return Value

JsonResponse

Exceptions

AccessDeniedException

at line 432
Response help()

Displays the help

Return Value

Response

Exceptions

AccessDeniedException