Backend.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @copyright 2024 Anna Larch <anna.larch@gmx.net>
  5. *
  6. * @author Anna Larch <anna.larch@gmx.net>
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  10. * License as published by the Free Software Foundation; either
  11. * version 3 of the License, or any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public
  19. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. namespace OCA\DAV\CardDAV\Sharing;
  22. use OCA\DAV\Connector\Sabre\Principal;
  23. use OCA\DAV\DAV\Sharing\Backend as SharingBackend;
  24. use OCP\ICacheFactory;
  25. use OCP\IGroupManager;
  26. use OCP\IUserManager;
  27. use Psr\Log\LoggerInterface;
  28. class Backend extends SharingBackend {
  29. public function __construct(private IUserManager $userManager,
  30. private IGroupManager $groupManager,
  31. private Principal $principalBackend,
  32. private ICacheFactory $cacheFactory,
  33. private Service $service,
  34. private LoggerInterface $logger,
  35. ) {
  36. parent::__construct($this->userManager, $this->groupManager, $this->principalBackend, $this->cacheFactory, $this->service, $this->logger);
  37. }
  38. }