Skip to content

Commit

Permalink
Merge pull request #2 from rcapile/master
Browse files Browse the repository at this point in the history
Config db options not passed to Profiler
  • Loading branch information
andrey-mokhov committed Mar 15, 2017
2 parents 7a49f71 + 9b6afd3 commit ca9db82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Db/Adapter/ProfilingAdapterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o
} else {
$adapter->setProfiler(new Profiler\Profiler());
}
if (isset($dbParams['options']) && is_array($dbParams['options'])) {
$options = $dbParams['options'];
if (isset($config['db']['options']) && is_array($config['db']['options'])) {
$options = $config['db']['options'];
} else {
$options = array();
}
Expand Down

0 comments on commit ca9db82

Please sign in to comment.