Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the new event classes #1945

Merged
merged 1 commit into from
Apr 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 96 additions & 1 deletion developer_manual/app/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,105 @@ In the ``Application.php`` the event and the listener class are connected. The c
Available Events
````````````````

Here you find an overview of the public events that can be consumed in apps. See their source files for more details.

``\OCP\User\Events\BeforeUserLoggedInWithCookieEvent``
******************************************************

*Available in Nextcloud 18 and later.*

Emitted before a user is logged in via remember-me cookies.

``\OCP\User\Events\UserLoggedInWithCookieEvent``
************************************************

Emitted when a user has been succesfully logged in via remember-me cookies.

*Available in Nextcloud 18 and later.*

``\OCP\User\Events\BeforePasswordUpdatedEvent``
***********************************************

*Available in Nextcloud 18 and later.*

Emitted before the user password is updated.

``\OCP\User\Events\PasswordUpdatedEvent``
*****************************************

*Available in Nextcloud 18 and later.*

Emitted when the user password has been updated.

``\OCP\User\Events\BeforeUserCreatedEvent``
*******************************************

*Available in Nextcloud 18 and later.*

Emitted before a new user is created on the back-end.

``\OCP\User\Events\UserCreatedEvent``
*************************************

*Available in Nextcloud 18 and later.*

Emitted when a new user has been created on the back-end.

``\OCP\User\Events\BeforeUserDeletedEvent``
*******************************************

*Available in Nextcloud 18 and later.*

Emitted before a user is logged out.

``\OCP\User\Events\UserDeletedEvent``
*************************************

*Available in Nextcloud 18 and later.*

Emitted when a user has been logged out successfully.

``\OCP\User\Events\BeforeUserLoggedInEvent``
********************************************

*Available in Nextcloud 18 and later.*

``\OCP\User\Events\BeforeUserLoggedOutEvent``
*********************************************

*Available in Nextcloud 18 and later.*

``\OCP\User\Events\CreateUserEvent``
************************************

*Available in Nextcloud 18 and later.*

``\OCP\User\Events\PostLoginEvent``
***********************************

*Available in Nextcloud 18 and later.*

``\OCP\User\Events\UserChangedEvent``
*************************************

*Available in Nextcloud 18 and later.*

``\OCP\User\Events\UserLoggedInEvent``
**************************************

*Available in Nextcloud 18 and later.*

``\OCP\User\Events\UserLoggedOutEvent``
***************************************

*Available in Nextcloud 18 and later.*

``\OCP\Security\CSP\AddContentSecurityPolicyEvent``
***************************************************

This event is emitted so apps can modify the CSP provided by nextcloud. For example if more domains can be used to connect to.
*Available in Nextcloud 17 and later.*

This event is emitted so apps can modify the CSP provided by nextcloud. For example if more domains can be used to connect to. Added in Nextcloud 17.


Symfony event dispatcher
Expand Down