Fix ctor
This commit is contained in:
parent
052583bcb6
commit
01a6656c37
1 changed files with 4 additions and 1 deletions
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue