protected function _beforeControllerGet(AnCommandContext $context)
    {
        if ($this->_mixer->getRequest()->get == 'accesstoken') {
            $this->_mixer->execute('getaccesstoken', $context);
            return false;
        } else {
            $this->api = $this->getAPI();
        }
    }
protected function _beforeControllerGet(AnCommandContext $context)
    {
        if ($this->_mixer->getRequest()->get == 'accesstoken') {
            $this->_mixer->execute('getaccesstoken', $context);
            return false;
        } else {
            $this->api = $this->getAPI();
        }
    }
protected function _beforeControllerGet ( AnCommandContext $ context ) { if ( $ this -> _mixer -> getRequest ( ) -> get == 'accesstoken' ) { $ this -> _mixer -> execute ( 'getaccesstoken' , $ context ) ; return false ; } else { $ this -> api = $ this -> getAPI ( ) ; } }
Set the api to the data in the context.

@param AnCommandContext $context
Set the api to the data in the context .