for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Audio Player
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the LICENSE.md file.
* @author Marcel Scherello <[email protected]>
* @copyright 2016-2019 Marcel Scherello
*/
namespace OCA\audioplayer\Hooks;
use OCA\audioplayer\Controller;
class UserHooks {
public static function deleteUser($params) {
$userId = $params['uid'];
$app = new \OCA\audioplayer\AppInfo\Application();
$container = $app->getContainer();
$container->query(\OCA\audioplayer\Controller\DbController::class)->resetMediaLibrary($userId, null, true);
}