We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f95e99 commit 1480987Copy full SHA for 1480987
README.md
@@ -39,9 +39,8 @@ AclManager::initFromProviders([
39
##### A controller as a resource, authorized for a role
40
With annotations:
41
```php
42
+namespace controllers;
43
/**
- * Controller TestAclController
44
- *
45
* @resource('Main')
46
* @allow('role'=>'@USER')
47
*/
@@ -53,8 +52,8 @@ class TestAclController extends ControllerBase {
53
52
With attributes:
54
55
namespace controllers;
56
-use Ubiquity\attributes\items\acls\Resource;
57
-use Ubiquity\attributes\items\acls\Allow;
+use Ubiquity\attributes\items\acl\Resource;
+use Ubiquity\attributes\items\acl\Allow;
58
59
#[Resource('Main')]
60
#[Allow(role: '@USER')]
0 commit comments