2015-11-05 13:37:31 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use OCA\DAV\Command\CreateAddressBook;
|
2015-11-16 18:29:01 +03:00
|
|
|
use OCA\DAV\Command\CreateCalendar;
|
2015-11-25 01:53:27 +03:00
|
|
|
use OCA\DAV\Command\SyncSystemAddressBook;
|
2015-11-05 13:37:31 +03:00
|
|
|
|
2015-11-25 01:53:27 +03:00
|
|
|
$config = \OC::$server->getConfig();
|
2015-11-05 13:37:31 +03:00
|
|
|
$dbConnection = \OC::$server->getDatabaseConnection();
|
|
|
|
$userManager = OC::$server->getUserManager();
|
2015-11-25 14:27:25 +03:00
|
|
|
$config = \OC::$server->getConfig();
|
2015-11-25 17:24:50 +03:00
|
|
|
$logger = \OC::$server->getLogger();
|
2015-11-25 14:27:25 +03:00
|
|
|
|
2015-11-05 13:37:31 +03:00
|
|
|
/** @var Symfony\Component\Console\Application $application */
|
2015-11-25 17:24:50 +03:00
|
|
|
$application->add(new CreateAddressBook($userManager, $dbConnection, $config, $logger));
|
2015-11-16 18:29:01 +03:00
|
|
|
$application->add(new CreateCalendar($userManager, $dbConnection));
|
2015-11-25 01:53:27 +03:00
|
|
|
$application->add(new SyncSystemAddressBook($userManager, $dbConnection, $config));
|