webpush
class webpush
Constants
FORM_TOKEN_UCP |
|
Properties
protected config | $config | ||
protected helper | $controller_helper | ||
protected driver_interface | $db | ||
protected form_helper | $form_helper | ||
protected language | $language | ||
protected manager | $notification_manager | ||
protected path_helper | $path_helper | ||
protected request_interface | $request | ||
protected user_loader | $user_loader | ||
protected user | $user | ||
protected Environment | $template | ||
protected string | $notification_webpush_table | ||
protected string | $push_subscriptions_table |
Methods
__construct(config $config, helper $controller_helper, driver_interface $db, form_helper $form_helper, language $language, manager $notification_manager, path_helper $path_helper, request_interface $request, user_loader $user_loader, user $user, Environment $template, string $notification_webpush_table, string $push_subscriptions_table)
Constructor for webpush controller
JsonResponse
notification()
Handle request to retrieve notification data
Response
worker()
Handle request to push worker javascript
void
check_subscribe_requests()
Check (un)subscribe form for valid link hash
JsonResponse
JsonResponse
Details
at line 97
__construct(config $config, helper $controller_helper, driver_interface $db, form_helper $form_helper, language $language, manager $notification_manager, path_helper $path_helper, request_interface $request, user_loader $user_loader, user $user, Environment $template, string $notification_webpush_table, string $push_subscriptions_table)
Constructor for webpush controller
at line 120
JsonResponse
notification()
Handle request to retrieve notification data
at line 269
Response
worker()
Handle request to push worker javascript
at line 294
protected void
check_subscribe_requests()
Check (un)subscribe form for valid link hash
at line 315
JsonResponse
subscribe(symfony_request $symfony_request)
Handle subscribe requests
at line 342
JsonResponse
unsubscribe(symfony_request $symfony_request)
Handle unsubscribe requests