src/Auth/FootprintAwareTrait.php
protected function _circumventEventManager($method, $args = [])
    {
        EventManager::instance()->off('Model.initialize', [$this, 'footprint']);
        $result = call_user_func_array([TableRegistry::get($this->_userModel), $method], $args);
        EventManager::instance()->on('Model.initialize', [$this, 'footprint']);

        return $result;
    }
protected function _circumventEventManager($method, $args = [])
    {
        EventManager::instance()->off('Model.initialize', [$this, 'footprint']);
        $result = call_user_func_array([TableRegistry::get($this->_userModel), $method], $args);
        EventManager::instance()->on('Model.initialize', [$this, 'footprint']);

        return $result;
    }
protected function _circumventEventManager ( $ method , $ args = [ ] ) { EventManager :: instance ( ) -> off ( 'Model.initialize' , [ $ this , 'footprint' ] ) ; $ result = call_user_func_array ( [ TableRegistry :: get ( $ this -> _userModel ) , $ method ] , $ args ) ; EventManager :: instance ( ) -> on ( 'Model.initialize' , [ $ this , 'footprint' ] ) ; return $ result ; }
Temporarily disable the listener on `Model.initialize` when trying to
fetch instantiate the table and avoid an infinite loop.

@param string $method Method name.
@param array $args Arguments to pass to the method.
@return \Cake\ORM\Table The users table.
Temporarily disable the listener on Model . initialize when trying to fetch instantiate the table and avoid an infinite loop .