mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #3297 from young-steveo/AclComponent-documentation-fix
Updated AclComponent documentation
This commit is contained in:
commit
fc1c686c31
3 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ class IniAcl extends Object implements AclInterface {
|
||||||
/**
|
/**
|
||||||
* Initialize method
|
* Initialize method
|
||||||
*
|
*
|
||||||
* @param AclBase $component
|
* @param Component $component
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function initialize(Component $component) {
|
public function initialize(Component $component) {
|
||||||
|
|
|
@ -21,8 +21,8 @@ App::uses('AclInterface', 'Controller/Component/Acl');
|
||||||
* Access Control List factory class.
|
* Access Control List factory class.
|
||||||
*
|
*
|
||||||
* Uses a strategy pattern to allow custom ACL implementations to be used with the same component interface.
|
* Uses a strategy pattern to allow custom ACL implementations to be used with the same component interface.
|
||||||
* You can define by changing `Configure::write('Acl.classname', 'DbAcl');` in your core.php. Concrete ACL
|
* You can define by changing `Configure::write('Acl.classname', 'DbAcl');` in your core.php. The adapter
|
||||||
* implementations should extend `AclBase` and implement the methods it defines.
|
* you specify must implement `AclInterface`
|
||||||
*
|
*
|
||||||
* @package Cake.Controller.Component
|
* @package Cake.Controller.Component
|
||||||
* @link http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html
|
* @link http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html
|
||||||
|
|
|
@ -78,7 +78,7 @@ class AclComponentTest extends CakeTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test that adapter() whines when the class is not an AclBase
|
* test that adapter() whines when the class does not implement AclInterface
|
||||||
*
|
*
|
||||||
* @expectedException CakeException
|
* @expectedException CakeException
|
||||||
* @return void
|
* @return void
|
||||||
|
|
Loading…
Reference in a new issue