CategoryFetcher.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch>
  4. *
  5. * @author Georg Ehrke <oc.list@georgehrke.com>
  6. * @author Joas Schilling <coding@schilljs.com>
  7. * @author Lukas Reschke <lukas@statuscode.ch>
  8. * @author Morris Jobke <hey@morrisjobke.de>
  9. * @author Roeland Jago Douma <roeland@famdouma.nl>
  10. *
  11. * @license GNU AGPL version 3 or any later version
  12. *
  13. * This program is free software: you can redistribute it and/or modify
  14. * it under the terms of the GNU Affero General Public License as
  15. * published by the Free Software Foundation, either version 3 of the
  16. * License, or (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU Affero General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Affero General Public License
  24. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  25. *
  26. */
  27. namespace OC\App\AppStore\Fetcher;
  28. use OC\Files\AppData\Factory;
  29. use OCP\AppFramework\Utility\ITimeFactory;
  30. use OCP\Http\Client\IClientService;
  31. use OCP\IConfig;
  32. use OCP\Support\Subscription\IRegistry;
  33. use Psr\Log\LoggerInterface;
  34. class CategoryFetcher extends Fetcher {
  35. public function __construct(Factory $appDataFactory,
  36. IClientService $clientService,
  37. ITimeFactory $timeFactory,
  38. IConfig $config,
  39. LoggerInterface $logger,
  40. IRegistry $registry) {
  41. parent::__construct(
  42. $appDataFactory,
  43. $clientService,
  44. $timeFactory,
  45. $config,
  46. $logger,
  47. $registry
  48. );
  49. $this->fileName = 'categories.json';
  50. $this->endpointName = 'categories.json';
  51. }
  52. }