Skip to content

Commit adad096

Browse files
committed
add attribute targets
Signed-off-by: Robert Landers <landers.robert@gmail.com>
1 parent 7e82629 commit adad096

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/State/Attributes/AllowAnyOperation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Bottledcode\DurablePhp\State\EntityId;
77
use Bottledcode\DurablePhp\State\OrchestrationInstance;
88

9-
#[Attribute(Attribute::IS_REPEATABLE)]
9+
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
1010
class AllowAnyOperation implements AccessControl
1111
{
1212
public function __construct(

src/State/Attributes/AllowCreateAll.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
use Attribute;
2828

29-
#[Attribute]
29+
#[Attribute(Attribute::TARGET_ALL)]
3030
class AllowCreateAll implements AccessControl
3131
{
3232
public function __construct() {}

src/State/Attributes/AllowCreateForAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
use Attribute;
2828

29-
#[Attribute]
29+
#[Attribute(Attribute::TARGET_ALL)]
3030
readonly class AllowCreateForAuth implements AccessControl
3131
{
3232
public function __construct(public int $userLimit = -1, public int $roleLimit = -1, public int $globalLimit = -1) {}

src/State/Attributes/AllowCreateForRole.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
use Attribute;
2828

29-
#[Attribute(Attribute::IS_REPEATABLE)]
29+
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
3030
readonly class AllowCreateForRole implements AccessControl
3131
{
3232
public function __construct(public string $role) {}

src/State/Attributes/AllowCreateForUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
use Attribute;
2828

29-
#[Attribute(Attribute::IS_REPEATABLE)]
29+
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
3030
class AllowCreateForUser implements AccessControl
3131
{
3232
public function __construct(public string $user) {}

src/State/Attributes/AllowCreateFrom.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Bottledcode\DurablePhp\State\OrchestrationInstance;
99
use LogicException;
1010

11-
#[Attribute(Attribute::IS_REPEATABLE)]
11+
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
1212
class AllowCreateFrom implements AccessControl
1313
{
1414
/**

src/State/Attributes/DenyAnyOperation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
use Bottledcode\DurablePhp\State\EntityId;
2929
use Bottledcode\DurablePhp\State\OrchestrationInstance;
3030

31-
#[Attribute(Attribute::IS_REPEATABLE)]
31+
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]
3232
class DenyAnyOperation implements AccessControl
3333
{
3434
public function __construct(

0 commit comments

Comments
 (0)