diff options
-rw-r--r-- | apps/dav/appinfo/register_command.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/appinfo/register_command.php b/apps/dav/appinfo/register_command.php index 10f68768751..3152712b7c0 100644 --- a/apps/dav/appinfo/register_command.php +++ b/apps/dav/appinfo/register_command.php @@ -19,6 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ +use OCA\Dav\AppInfo\Application; use OCA\DAV\Command\CreateAddressBook; use OCA\DAV\Command\CreateCalendar; use OCA\DAV\Command\SyncSystemAddressBook; @@ -29,7 +30,9 @@ $userManager = OC::$server->getUserManager(); $config = \OC::$server->getConfig(); $logger = \OC::$server->getLogger(); +$app = new Application(); + /** @var Symfony\Component\Console\Application $application */ $application->add(new CreateAddressBook($userManager, $dbConnection, $config, $logger)); $application->add(new CreateCalendar($userManager, $dbConnection)); -$application->add(new SyncSystemAddressBook($userManager, $dbConnection, $config)); +$application->add(new SyncSystemAddressBook($app->getSyncService())); |