CakeDC\Users\Controller\Component\RememberMeComponent::_attachEvents PHP Метод

_attachEvents() защищенный Метод

Attach the afterLogin and beforeLogount events
protected _attachEvents ( ) : void
Результат void
    protected function _attachEvents()
    {
        $eventManager = $this->_registry->getController()->eventManager();
        $eventManager->on(UsersAuthComponent::EVENT_AFTER_LOGIN, [], [$this, 'setLoginCookie']);
        $eventManager->on(UsersAuthComponent::EVENT_BEFORE_LOGOUT, [], [$this, 'destroy']);
    }