InstallationCompletedEvent
extends Event
in package
Emitted when the Nextcloud installation has been completed successfully.
This event is dispatched after:
- The database has been configured and migrations have run
- The admin user has been created (if applicable)
- Default apps have been installed
- Background jobs have been configured
- The system has been marked as installed
Apps can listen to this event to perform additional actions after installation, such as:
- Sending notification emails
- Triggering external APIs
- Initializing app-specific data
- Setting up integrations
Tags
Table of Contents
Properties
- $adminEmail : string|null
- $adminUsername : string|null
- $dataDirectory : string
Methods
- __construct() : mixed
- Compatibility constructor
- getAdminEmail() : string|null
- Get the admin email if configured
- getAdminUsername() : string|null
- Get the admin username if an admin user was created
- getDataDirectory() : string
- Get the configured data directory path
- hasAdminUser() : bool
- Check if an admin user was created during installation
- isPropagationStopped() : bool
- {@inheritDoc}
- stopPropagation() : void
- Stops the propagation of the event to further event listeners
Properties
$adminEmail
private
string|null
$adminEmail
= null
$adminUsername
private
string|null
$adminUsername
= null
$dataDirectory
private
string
$dataDirectory
Methods
__construct()
Compatibility constructor
public
__construct(string $dataDirectory[, string|null $adminUsername = null ][, string|null $adminEmail = null ]) : mixed
Parameters
- $dataDirectory : string
- $adminUsername : string|null = null
- $adminEmail : string|null = null
Tags
getAdminEmail()
Get the admin email if configured
public
getAdminEmail() : string|null
Tags
Return values
string|nullgetAdminUsername()
Get the admin username if an admin user was created
public
getAdminUsername() : string|null
Tags
Return values
string|nullgetDataDirectory()
Get the configured data directory path
public
getDataDirectory() : string
Tags
Return values
stringhasAdminUser()
Check if an admin user was created during installation
public
hasAdminUser() : bool
Tags
Return values
boolisPropagationStopped()
{@inheritDoc}
public
isPropagationStopped() : bool
Tags
Return values
boolstopPropagation()
Stops the propagation of the event to further event listeners
public
stopPropagation() : void