Skip to content

Commit 6789cad

Browse files
committed
Removed deprecated constants
1 parent 62dcbe1 commit 6789cad

File tree

2 files changed

+6
-40
lines changed

2 files changed

+6
-40
lines changed

src/Parameters/CreateMeetingParameters.php

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
namespace BigBlueButton\Parameters;
2121

2222
use BigBlueButton\Core\GuestPolicy;
23-
use BigBlueButton\Core\MeetingLayout;
2423

2524
/**
2625
* @method string getName()
@@ -124,40 +123,6 @@
124123
*/
125124
class CreateMeetingParameters extends MetaParameters
126125
{
127-
/**
128-
* @deprecated use GuestPolicy::ALWAYS_ACCEPT instead
129-
*/
130-
public const ALWAYS_ACCEPT = GuestPolicy::ALWAYS_ACCEPT;
131-
/**
132-
* @deprecated use GuestPolicy::ALWAYS_DENY instead
133-
*/
134-
public const ALWAYS_DENY = GuestPolicy::ALWAYS_DENY;
135-
/**
136-
* @deprecated use GuestPolicy::ASK_MODERATOR instead
137-
*/
138-
public const ASK_MODERATOR = GuestPolicy::ASK_MODERATOR;
139-
/**
140-
* @deprecated use GuestPolicy::ALWAYS_ACCEPT_AUTH instead
141-
*/
142-
public const ALWAYS_ACCEPT_AUTH = GuestPolicy::ALWAYS_ACCEPT_AUTH;
143-
144-
/**
145-
* @deprecated use MeetingLayout::CUSTOM_LAYOUT instead
146-
*/
147-
public const CUSTOM_LAYOUT = MeetingLayout::CUSTOM_LAYOUT;
148-
/**
149-
* @deprecated use MeetingLayout::SMART_LAYOUT instead
150-
*/
151-
public const SMART_LAYOUT = MeetingLayout::SMART_LAYOUT;
152-
/**
153-
* @deprecated use MeetingLayout::PRESENTATION_FOCUS instead
154-
*/
155-
public const PRESENTATION_FOCUS = MeetingLayout::PRESENTATION_FOCUS;
156-
/**
157-
* @deprecated use MeetingLayout::VIDEO_FOCUS instead
158-
*/
159-
public const VIDEO_FOCUS = MeetingLayout::VIDEO_FOCUS;
160-
161126
/**
162127
* @var string
163128
*/
@@ -462,9 +427,6 @@ public function isUserCameraCapDisabled(): bool
462427
return $this->userCameraCap === 0;
463428
}
464429

465-
/**
466-
* @return CreateMeetingParameters
467-
*/
468430
public function disableUserCameraCap(): self
469431
{
470432
$this->userCameraCap = 0;
@@ -535,15 +497,15 @@ public function setGuestPolicyAlwaysAcceptAuth()
535497
*/
536498
public function isGuestPolicyAlwaysAccept()
537499
{
538-
return $this->guestPolicy === self::ALWAYS_ACCEPT;
500+
return $this->guestPolicy === GuestPolicy::ALWAYS_ACCEPT;
539501
}
540502

541503
/**
542504
* @return CreateMeetingParameters
543505
*/
544506
public function setGuestPolicyAlwaysAccept()
545507
{
546-
$this->guestPolicy = self::ALWAYS_ACCEPT;
508+
$this->guestPolicy = GuestPolicy::ALWAYS_ACCEPT;
547509

548510
return $this;
549511
}

tools/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ We don't want to enforce our tools as a `dev` dependency of the library as this
2525

2626
Example: We're using PHPUnit 8, as PHPUnit 9 does not support all PHP versions we're supporting.
2727
If we had a dependency in the main `composer.json`, every consumer of the library is forced to use PHPUnit 8, too, even this has no relevance at all as the tests of the library are never executed by the consumer (and also not delivered).
28+
29+
## Manage tools
30+
31+
Use [IServ-GmbH/cotor: The Composer Tools Installer](https://github.com/IServ-GmbH/cotor) to add new tools or to update/extend existing tools.

0 commit comments

Comments
 (0)