RoomPrincipalBackend.php 826 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\DAV\CalDAV\ResourceBooking;
  7. use OCA\DAV\CalDAV\Proxy\ProxyMapper;
  8. use OCP\IDBConnection;
  9. use OCP\IGroupManager;
  10. use OCP\IUserSession;
  11. use Psr\Log\LoggerInterface;
  12. /**
  13. * Class RoomPrincipalBackend
  14. *
  15. * @package OCA\DAV\CalDAV\ResourceBooking
  16. */
  17. class RoomPrincipalBackend extends AbstractPrincipalBackend {
  18. /**
  19. * RoomPrincipalBackend constructor.
  20. */
  21. public function __construct(IDBConnection $dbConnection,
  22. IUserSession $userSession,
  23. IGroupManager $groupManager,
  24. LoggerInterface $logger,
  25. ProxyMapper $proxyMapper) {
  26. parent::__construct($dbConnection, $userSession, $groupManager, $logger,
  27. $proxyMapper, 'principals/calendar-rooms', 'room', 'ROOM');
  28. }
  29. }