You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wanted to hide things from Registry I'm still using an older 1.5 version but thought I'de share here.
Also good to not show it if user is not logged in, but I can do that in Bootstrap.php already.
/** * Contains a blacklist of Registry keys not to show. * * @var array */protected$_blacklist = array(
'config',
'db',
'multidb',
'Zend_Locale',
'Zend_View_Helper_Doctype',
'Zend_View_Helper_Placeholder_Registry',
);
/** * Create ZFDebug_Controller_Plugin_Debug_Plugin_Registry * * @param array $options */publicfunction__construct(array$options = array())
{
$this->_registry = Zend_Registry::getInstance();
if(isset($options['blacklist'])) {
$this->_blacklist = $options['blacklist'];
}
}
// Further down in getPanel I put this.// Can use array_filter.$this->_registry = newArrayObject(
array_filter( (array) $this->_registry, array($this, 'filter'),ARRAY_FILTER_USE_KEY)
);
privatefunctionfilter($k) {
return !in_array($k, $this->_blacklist, true);
}
The text was updated successfully, but these errors were encountered:
Wanted to hide things from Registry I'm still using an older 1.5 version but thought I'de share here.
Also good to not show it if user is not logged in, but I can do that in Bootstrap.php already.
The text was updated successfully, but these errors were encountered: