summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-05 11:37:31 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-06 15:26:51 +0100
commit20e37bd38f8e1291079f3d006f6e369d826a4463 (patch)
tree98e8d4a86b6704dfd2076f2a7830dbea707e6a72 /apps/dav/appinfo
parentd8e965e59ad139c3f07f300344c7ab415cfbc901 (diff)
downloadnextcloud-server-20e37bd38f8e1291079f3d006f6e369d826a4463.tar.gz
nextcloud-server-20e37bd38f8e1291079f3d006f6e369d826a4463.zip
Adding occ command to create an addressbook
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r--apps/dav/appinfo/register_command.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/dav/appinfo/register_command.php b/apps/dav/appinfo/register_command.php
new file mode 100644
index 00000000000..c996dd44063
--- /dev/null
+++ b/apps/dav/appinfo/register_command.php
@@ -0,0 +1,8 @@
+<?php
+
+use OCA\DAV\Command\CreateAddressBook;
+
+$dbConnection = \OC::$server->getDatabaseConnection();
+$userManager = OC::$server->getUserManager();
+/** @var Symfony\Component\Console\Application $application */
+$application->add(new CreateAddressBook($userManager, $dbConnection));