Méthode | Description | |
---|---|---|
onComponentUpdateFileFinished ( string $componentName, string $file, string $updateClassName, string $version ) | Executed after the update method of an Updates class is successfully executed. | |
onComponentUpdateFileStarting ( string $componentName, string $file, string $updateClassName, string $version ) | Executed before the update method of an Updates class is executed. | |
onComponentUpdateFinished ( string $name, string $version, string[] $warnings ) | Executed after a component has been successfully updated. | |
onComponentUpdateStarting ( string $name ) | Executed when a component is about to be updated. At this point, no SQL queries or other updating logic has been executed. | |
onError ( string $componentName, string $version, Exception $exception ) | Executed when an error occurs during the update process. An error occurs when an Updates file throws a UpdaterErrorException. | |
onFinishedExecutingMigration ( string $updateFile, |
Executed after a migration is executed. | |
onStartExecutingMigration ( string $updateFile, |
Executed before a migration is executed. | |
onWarning ( string $componentName, string $version, Exception $exception ) | Executed when a warning occurs during the update process. A warning occurs when an Updates file throws an exception that is not a UpdaterErrorException. |
public onComponentUpdateFileFinished ( string $componentName, string $file, string $updateClassName, string $version ) | ||
$componentName | string | The name of the component being updated. |
$file | string | The path to the Updates file being executed. |
$updateClassName | string | The name of the Update class that should exist within the Update file. |
$version | string | The version the Updates file belongs to. |
public onComponentUpdateFileStarting ( string $componentName, string $file, string $updateClassName, string $version ) | ||
$componentName | string | The name of the component being updated. |
$file | string | The path to the Updates file being executed. |
$updateClassName | string | The name of the Update class that should exist within the Update file. |
$version | string | The version the Updates file belongs to. |
public onComponentUpdateFinished ( string $name, string $version, string[] $warnings ) | ||
$name | string | The name of the component being updated. |
$version | string | The version of the component that was updated. |
$warnings | string[] | Any warnings that occurred during the component update process. |
public onComponentUpdateStarting ( string $name ) | ||
$name | string | The name of the component being updated. |
public onFinishedExecutingMigration ( string $updateFile, |
||
$updateFile | string | The path to the Updates file being executed. |
$migration | The migration that is about to be executed. |
public onStartExecutingMigration ( string $updateFile, |
||
$updateFile | string | The path to the Updates file being executed. |
$migration | The migration that is about to be executed. |