Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #183 from Koopzington/master
Browse files Browse the repository at this point in the history
Fix setting of ProfilingAdapter
  • Loading branch information
Ocramius committed Apr 23, 2015
2 parents 5ea0e3a + 8658119 commit d133cad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Module.php
Expand Up @@ -216,7 +216,8 @@ public function getServiceConfig()
$p = true;
$db->setProfiler($adapter->getProfiler());
}
} elseif (!$p && $sm->has('Zend\Db\Adapter\ProfilingAdapter')) {
}
if (!$p && $sm->has('Zend\Db\Adapter\ProfilingAdapter')) {
$adapter = $sm->get('Zend\Db\Adapter\ProfilingAdapter');
if ($adapter instanceof ProfilingAdapter) {
$db->setProfiler($adapter->getProfiler());
Expand Down

0 comments on commit d133cad

Please sign in to comment.