PHP Class TinyAuth\Controller\Component\AuthComponent

Inheritance: extends Cake\Controller\Component\AuthComponent, use trait TinyAuth\Auth\AclTrait
Exibir arquivo Open project: dereuromark/cakephp-tinyauth Class Usage Examples

Protected Properties

Property Type Description
$_defaultTinyAuthConfig array

Public Methods

Method Description
__construct ( Cake\Controller\ComponentRegistry $registry, array $config = [] )
beforeRender ( Cake\Event\Event $event ) : Response | null
implementedEvents ( ) : array Events supported by this component.
startup ( Cake\Event\Event $event ) : Response | null

Protected Methods

Method Description
_getAuth ( string | null $path = null ) : array Parse ini file and returns the allowed actions.
_prepareAuthentication ( ) : void

Method Details

__construct() public method

public __construct ( Cake\Controller\ComponentRegistry $registry, array $config = [] )
$registry Cake\Controller\ComponentRegistry
$config array

_getAuth() protected method

Uses cache for maximum performance.
protected _getAuth ( string | null $path = null ) : array
$path string | null
return array Actions

_prepareAuthentication() protected method

protected _prepareAuthentication ( ) : void
return void

beforeRender() public method

public beforeRender ( Cake\Event\Event $event ) : Response | null
$event Cake\Event\Event
return Cake\Network\Response | null

implementedEvents() public method

Events supported by this component.
public implementedEvents ( ) : array
return array

startup() public method

public startup ( Cake\Event\Event $event ) : Response | null
$event Cake\Event\Event Event instance.
return Cake\Network\Response | null

Property Details

$_defaultTinyAuthConfig protected_oe property

protected array $_defaultTinyAuthConfig
return array