Skip to content

Commit 1480987

Browse files
authored
[skip ci] Update README
1 parent 5f95e99 commit 1480987

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ AclManager::initFromProviders([
3939
##### A controller as a resource, authorized for a role
4040
With annotations:
4141
```php
42+
namespace controllers;
4243
/**
43-
* Controller TestAclController
44-
*
4544
* @resource('Main')
4645
* @allow('role'=>'@USER')
4746
*/
@@ -53,8 +52,8 @@ class TestAclController extends ControllerBase {
5352
With attributes:
5453
```php
5554
namespace controllers;
56-
use Ubiquity\attributes\items\acls\Resource;
57-
use Ubiquity\attributes\items\acls\Allow;
55+
use Ubiquity\attributes\items\acl\Resource;
56+
use Ubiquity\attributes\items\acl\Allow;
5857

5958
#[Resource('Main')]
6059
#[Allow(role: '@USER')]

0 commit comments

Comments
 (0)