| @@ 53-70 (lines=18) @@ | ||
| 50 | /** @var EventDispatcherInterface */ | |
| 51 | protected $eventDispatcher; | |
| 52 | ||
| 53 | public function __construct(IDBConnection $connection, | |
| 54 | IL10N $l, | |
| 55 | IClientService $clientService, | |
| 56 | ILogger $logger, | |
| 57 | IJobList $jobList, | |
| 58 | ISecureRandom $secureRandom, | |
| 59 | IConfig $config, | |
| 60 | 								EventDispatcherInterface $eventDispatcher) { | |
| 61 | $this->connection = $connection; | |
| 62 | $this->l = $l; | |
| 63 | $this->clientService = $clientService; | |
| 64 | $this->logger = $logger; | |
| 65 | $this->jobList = $jobList; | |
| 66 | $this->secureRandom = $secureRandom; | |
| 67 | $this->config = $config; | |
| 68 | $this->eventDispatcher = $eventDispatcher; | |
| 69 | } | |
| 70 | ||
| 71 | 	public function getPriority() { | |
| 72 | return 90; | |
| 73 | } | |
| @@ 67-84 (lines=18) @@ | ||
| 64 | * @param UpdateChecker $updateChecker | |
| 65 | * @param IDateTimeFormatter $dateTimeFormatter | |
| 66 | */ | |
| 67 | public function __construct($appName, | |
| 68 | IRequest $request, | |
| 69 | IJobList $jobList, | |
| 70 | ISecureRandom $secureRandom, | |
| 71 | IConfig $config, | |
| 72 | ITimeFactory $timeFactory, | |
| 73 | IL10N $l10n, | |
| 74 | UpdateChecker $updateChecker, | |
| 75 | 								IDateTimeFormatter $dateTimeFormatter) { | |
| 76 | parent::__construct($appName, $request); | |
| 77 | $this->jobList = $jobList; | |
| 78 | $this->secureRandom = $secureRandom; | |
| 79 | $this->config = $config; | |
| 80 | $this->timeFactory = $timeFactory; | |
| 81 | $this->l10n = $l10n; | |
| 82 | $this->updateChecker = $updateChecker; | |
| 83 | $this->dateTimeFormatter = $dateTimeFormatter; | |
| 84 | } | |
| 85 | ||
| 86 | 	public function getPriority() { | |
| 87 | return 0; | |
| @@ 78-94 (lines=17) @@ | ||
| 75 | * @param IConfig $config | |
| 76 | * @param EventDispatcherInterface $dispatcher | |
| 77 | */ | |
| 78 | public function __construct( | |
| 79 | DbHandler $dbHandler, | |
| 80 | IClientService $httpClientService, | |
| 81 | ILogger $logger, | |
| 82 | IJobList $jobList, | |
| 83 | ISecureRandom $secureRandom, | |
| 84 | IConfig $config, | |
| 85 | EventDispatcherInterface $dispatcher | |
| 86 | 	) { | |
| 87 | $this->dbHandler = $dbHandler; | |
| 88 | $this->httpClientService = $httpClientService; | |
| 89 | $this->logger = $logger; | |
| 90 | $this->jobList = $jobList; | |
| 91 | $this->secureRandom = $secureRandom; | |
| 92 | $this->config = $config; | |
| 93 | $this->dispatcher = $dispatcher; | |
| 94 | } | |
| 95 | ||
| 96 | /** | |
| 97 | * add server to the list of trusted ownCloud servers | |
| @@ 96-116 (lines=21) @@ | ||
| 93 | * @param IConfig $config | |
| 94 | * @param IUserManager $userManager | |
| 95 | */ | |
| 96 | public function __construct( | |
| 97 | IDBConnection $connection, | |
| 98 | AddressHandler $addressHandler, | |
| 99 | Notifications $notifications, | |
| 100 | TokenHandler $tokenHandler, | |
| 101 | IL10N $l10n, | |
| 102 | ILogger $logger, | |
| 103 | IRootFolder $rootFolder, | |
| 104 | IConfig $config, | |
| 105 | IUserManager $userManager | |
| 106 | 	) { | |
| 107 | $this->dbConnection = $connection; | |
| 108 | $this->addressHandler = $addressHandler; | |
| 109 | $this->notifications = $notifications; | |
| 110 | $this->tokenHandler = $tokenHandler; | |
| 111 | $this->l = $l10n; | |
| 112 | $this->logger = $logger; | |
| 113 | $this->rootFolder = $rootFolder; | |
| 114 | $this->config = $config; | |
| 115 | $this->userManager = $userManager; | |
| 116 | } | |
| 117 | ||
| 118 | /** | |
| 119 | * Return the identifier of this provider. | |
| @@ 66-78 (lines=13) @@ | ||
| 63 | * @param ITimeFactory $timeFactory | |
| 64 | * @param IL10N $l10n | |
| 65 | */ | |
| 66 | public function __construct(ISecureRandom $secureRandom, IConfig $config, | |
| 67 | IMailer $mailer, IURLGenerator $urlGenerator, | |
| 68 | \OC_Defaults $defaults, ITimeFactory $timeFactory, | |
| 69 | 								IL10N $l10n) { | |
| 70 | $this->secureRandom = $secureRandom; | |
| 71 | $this->config = $config; | |
| 72 | $this->mailer = $mailer; | |
| 73 | $this->urlGenerator = $urlGenerator; | |
| 74 | $this->defaults = $defaults; | |
| 75 | $this->timeFactory = $timeFactory; | |
| 76 | $this->l10n = $l10n; | |
| 77 | 		$this->fromMailAddress = Util::getDefaultEmailAddress('no-reply'); | |
| 78 | } | |
| 79 | ||
| 80 | /** | |
| 81 | * @param string $userId | |