File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,14 @@ public static function start(): void {
45
45
self ::$ aclList = new AclList ();
46
46
self ::$ aclList ->init ();
47
47
}
48
+
49
+ /**
50
+ * Start the Acls with AclCacheProvider (for attributes or annotations).
51
+ */
52
+ public static function startWithCacheProvider (): void {
53
+ self ::start ();
54
+ self ::initFromProviders ([new AclCacheProvider ()]);
55
+ }
48
56
49
57
/**
50
58
* Check whether the Acl service is started.
Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ protected function _before() {
20
20
]
21
21
];
22
22
CacheManager::startProd ($ config );
23
- AclManager::start ();
24
- AclManager::initFromProviders ([
25
- new AclCacheProvider ()
26
- ]);
23
+ AclManager::startWithCacheProvider ();
27
24
}
28
25
29
26
/**
You can’t perform that action at this time.
0 commit comments