[ \Test\Command\SimpleCommand::class, \Test\Command\StateFullCommand::class, \Test\Command\FilesystemCommand::class, \OCA\Files_Trashbin\Command\Expire::class, \OCA\Files_Versions\Command\Expire::class, ]]); if ($command instanceof ICommand) { $command->handle(); } else { throw new \InvalidArgumentException('Invalid serialized command'); } } }