Issue Bug Closed

#76906Protected property sword disables possiblity to use hook

Claus Harup 07/01/16, 13:11 updated 10/02/18, 11:09

Description

Having:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['pi1_hooks']['initialize_postProc'] = 'XXXXXXX\TxExtension\Hooks\IndexedsearchHook';

and

function initialize_postProc() {
    if(GeneralUtility::_GP('q')){
        $this->pObj->sword = GeneralUtility::_GP('q');
    }
}

leaves me with an error because the property sword is protected :-(

Reviews 1