File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace Codefy \Framework \Providers ;
6
6
7
- use Codefy \Framework \Auth \Rbac \RbacLoader ;
8
7
use Codefy \Framework \Auth \Rbac \Resource \ConfigStorageResource ;
9
8
use Codefy \Framework \Auth \Rbac \Resource \StorageResource ;
10
9
use Codefy \Framework \Support \CodefyServiceProvider ;
11
- use Qubus \Exception \Exception ;
12
10
13
11
final class RbacServiceProvider extends CodefyServiceProvider
14
12
{
@@ -21,20 +19,4 @@ public function register(): void
21
19
$ this ->codefy ->alias (original: StorageResource::class, alias: ConfigStorageResource::class);
22
20
$ this ->codefy ->share (nameOrInstance: StorageResource::class);
23
21
}
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
- }
40
22
}
You can’t perform that action at this time.
0 commit comments