Skip to content

Commit baea3c2

Browse files
committed
refactor: small fixes
1 parent 98a1a87 commit baea3c2

File tree

4 files changed

+13
-305
lines changed

4 files changed

+13
-305
lines changed

config/acl.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22

33
return [
44

5-
/*
6-
|--------------------------------------------------------------------------
7-
| Roles
8-
|--------------------------------------------------------------------------
9-
*/
10-
'roles' => [
11-
'entity' => App\Entities\Role::class,
12-
],
135
/*
146
|--------------------------------------------------------------------------
157
| Permissions
@@ -24,6 +16,17 @@
2416
'entity' => LaravelDoctrine\ACL\Permissions\Permission::class,
2517
'list' => [],
2618
],
19+
20+
21+
/*
22+
|--------------------------------------------------------------------------
23+
| Roles
24+
|--------------------------------------------------------------------------
25+
*/
26+
'roles' => [
27+
'entity' => App\Entities\Role::class,
28+
],
29+
2730
/*
2831
|--------------------------------------------------------------------------
2932
| Organisations

src/Permissions/Driver/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class Config implements PermissionDriver
1111
protected Collection $collection;
1212

1313
/** @var array<string> */
14-
public function __construct(protected array $permissions)
14+
public function __construct(array $permissions)
1515
{
16-
$this->collection = new Collection($this->permissions);
16+
$this->collection = new Collection($permissions);
1717
}
1818

1919
public function getAllPermissions(): Collection

workbench/bootstrap/cache/packages.php

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)