Skip to content

Commit 745d0e1

Browse files
author
Mark Scherer
committed
cleanup
1 parent fe94c3f commit 745d0e1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Auth/TinyAuthorize.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@
2424
}
2525

2626
/**
27-
* Probably the most simple and fastest Acl out there.
28-
* Only one config file `acl.ini` necessary
29-
* Doesn't even need a Role Model / roles table
30-
* Uses most persistent _cake_core_ cache by default
27+
* Probably the most simple and fastest ACL out there.
28+
* Only one config file `acl.ini` necessary,
29+
* doesn't even need a Roles Table / roles table.
30+
* Uses most persistent _cake_core_ cache by default.
3131
* @link http://www.dereuromark.de/2011/12/18/tinyauth-the-fastest-and-easiest-authorization-for-cake2
3232
*
3333
* Usage:
34-
* Include it in your beforeFilter() method of the AppController
35-
* $this->Auth->authorize = array('Tools.Tiny');
34+
* Include it in your beforeFilter() method of the AppController with the following config:
35+
* 'authorize' => ['Tools.Tiny']
3636
*
3737
* Or with admin prefix protection only
38-
* $this->Auth->authorize = array('Tools.Tiny' => array('allowUser' => true));
38+
* 'authorize' => ['Tools.Tiny' => ['allowUser' => true]];
3939
*
4040
* @author Mark Scherer
4141
* @license MIT

0 commit comments

Comments
 (0)