php - Add Collector to ZendDeveloperTools -
the question had answered solution doesn't work , don't know why : how log zend developer tools toolbar?
i open new question because can't comment , can't reply ask (it's avoid, right ?)
so, wanna add collector zenddevelopertools display variables. tried code , got error :
fatal error: uncaught exception 'zend\servicemanager\exception\servicenotfoundexception' message 'unable fetch or create instance modsession\configcollector.
and put in modsession/config/module.config.php
'invokables' => array( 'modsession\configcollector' => 'modsession\collector\configcollector', ), 'view_manager' => array( 'template_map' => array( 'zend-developer-tools/toolbar/modsession-configs' => __dir__ . '/../view/zend-developer-tools/toolbar/modsession-configs.phtml', ), ), 'zenddevelopertools' => array( 'profiler' => array( 'collectors' => array( 'modsession_configs' => 'modsession\configcollector', ), ), 'toolbar' => array( 'entries' => array( 'modsession_configs' => 'zend-developer-tools/toolbar/modsession-configs', ), ), ),
i don't see wrong, names correct, doesn't find don't understand
thanks reply , explain me error
if indeed module.config.php
you're missing service_manager
key should wrapping array of invokables
...
'service_manager' => array( 'invokables' => array( 'modsession\configcollector' => 'modsession\collector\configcollector', ), ),
Comments
Post a Comment