Is it possible to have a ZendDeveloperTools Toolbar entry for a module, without creating a Collector?

StackOverflow https://stackoverflow.com/questions/20628782

  •  02-09-2022
  •  | 
  •  

Question

All I want to show there is available via ViewHelpers provided by the module.

Was it helpful?

Solution

Ok, I found a solution. I wanted to avoid the creation of a "dummy" Collector, because - as mentioned in the question, all I want to be visible on the toolbar, is available through provided view helpers.

Now I'm just pointing the Collector, to a collector that was already registered by the ZendDeveloperTools module (ZendDeveloperTools\RequestCollector):

return array(
    'zenddevelopertools' => array(
        'profiler' => array(
            'collectors' => array(
                'MyCollecor' => 'ZendDeveloperTools\RequestCollector'
            ),
        ),
        'toolbar'  => array(
            'entries' => array(
                'MyCollecor' => 'zend-developer-tools/toolbar/websafe-zf-mod-language',
            ),
        ),
    ),
);

I hope that's OK.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top