-
Notifications
You must be signed in to change notification settings - Fork 197
/
register_command.php
72 lines (68 loc) · 1.96 KB
/
register_command.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* ownCloud - Music app
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Leizh <leizh@free.fr>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Pauli Järvinen <pauli.jarvinen@gmail.com>
* @copyright Leizh 2014
* @copyright Morris Jobke 2014
* @copyright Pauli Järvinen 2017 - 2024
*/
use OCA\Music\AppInfo\Application;
$app = \OC::$server->query(Application::class);
$c = $app->getContainer();
$application->add(new OCA\Music\Command\Scan(
$c->query('UserManager'),
$c->query('GroupManager'),
$c->query('Scanner')
));
$application->add(new OCA\Music\Command\ResetDatabase(
$c->query('UserManager'),
$c->query('GroupManager'),
$c->query('Maintenance')
));
$application->add(new OCA\Music\Command\ResetCache(
$c->query('UserManager'),
$c->query('GroupManager'),
$c->query('DbCache')
));
$application->add(new OCA\Music\Command\Cleanup(
$c->query('Maintenance')
));
$application->add(new OCA\Music\Command\RegisterMimeTypes(
$c->query('MimeTypeLoader')
));
$application->add(new OCA\Music\Command\PodcastAdd(
$c->query('UserManager'),
$c->query('GroupManager'),
$c->query('PodcastChannelBusinessLayer'),
$c->query('PodcastEpisodeBusinessLayer')
));
$application->add(new OCA\Music\Command\PodcastReset(
$c->query('UserManager'),
$c->query('GroupManager'),
$c->query('PodcastService')
));
$application->add(new OCA\Music\Command\PodcastUpdate(
$c->query('UserManager'),
$c->query('GroupManager'),
$c->query('PodcastService')
));
$application->add(new OCA\Music\Command\PlaylistExport(
$c->query('UserManager'),
$c->query('GroupManager'),
$c->query('RootFolder'),
$c->query('PlaylistBusinessLayer'),
$c->query('PlaylistFileService')
));
$application->add(new OCA\Music\Command\PlaylistImport(
$c->query('UserManager'),
$c->query('GroupManager'),
$c->query('RootFolder'),
$c->query('PlaylistBusinessLayer'),
$c->query('PlaylistFileService')
));