Created
September 15, 2012 00:15
-
-
Save bjyoungblood/3725720 to your computer and use it in GitHub Desktop.
db-profile-helper-service-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function getViewHelperConfig() | |
{ | |
return array( | |
'factories' => array( | |
'dbqueryprofiles' => function($sm) { | |
$sm = $sm->getServiceLocator(); | |
$helper = new View\Helper\DbQueryProfiles; | |
$helper->setProfiler($sm->get('Zend\Db\Adapter\Adapter')->getProfiler()); | |
return $helper; | |
} | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment