mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-23 03:26:09 +01:00
Fix RemoveAllCommand return type
The command should always return an integer as exit code. The called method does not return anything, resulting in null to be returned.
This commit is contained in:
parent
d0cb951550
commit
018fdc697e
1 changed files with 3 additions and 1 deletions
|
@ -22,8 +22,10 @@ class RemoveAllCommand extends Command
|
|||
{
|
||||
Bootstrap::initializeBackendAuthentication();
|
||||
|
||||
return GeneralUtility::makeInstance(ObjectManager::class)
|
||||
GeneralUtility::makeInstance(ObjectManager::class)
|
||||
->get(CleanupService::class)
|
||||
->deleteAllData();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue