mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Updated documentation
* Removed references to nonexistent `AclBase` class * Added references to `AclInterface` requirements
This commit is contained in:
parent
3e579571aa
commit
b55fa98a2d
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…
Add table
Reference in a new issue