Skip to content

Commit 35e6615

Browse files
committed
Removed the boot method.
Signed-off-by: Joshua Parker <joshua@joshuaparker.dev>
1 parent eee38f1 commit 35e6615

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Providers/RbacServiceProvider.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44

55
namespace Codefy\Framework\Providers;
66

7-
use Codefy\Framework\Auth\Rbac\RbacLoader;
87
use Codefy\Framework\Auth\Rbac\Resource\ConfigStorageResource;
98
use Codefy\Framework\Auth\Rbac\Resource\StorageResource;
109
use Codefy\Framework\Support\CodefyServiceProvider;
11-
use Qubus\Exception\Exception;
1210

1311
final class RbacServiceProvider extends CodefyServiceProvider
1412
{
@@ -21,20 +19,4 @@ public function register(): void
2119
$this->codefy->alias(original: StorageResource::class, alias: ConfigStorageResource::class);
2220
$this->codefy->share(nameOrInstance: StorageResource::class);
2321
}
24-
25-
/**
26-
* @throws Exception
27-
*/
28-
public function boot(): void
29-
{
30-
if ($this->codefy->isRunningInConsole()) {
31-
return;
32-
}
33-
34-
/** @var RbacLoader $rbac */
35-
$rbac = $this->codefy->make(name: RbacLoader::class);
36-
37-
$rbac->initRbacRoles();
38-
$rbac->initRbacPermissions();
39-
}
4022
}

0 commit comments

Comments
 (0)