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

Commit

Permalink
Merge pull request #43 from mouhamed/patch-3
Browse files Browse the repository at this point in the history
Fix violation of SOLID principles
  • Loading branch information
bjyoungblood committed Mar 11, 2014
2 parents 1ad040a + 45d1614 commit 362b83f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BjyProfiler/Db/Adapter/ProfilingAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Zend\Db\Adapter\Adapter;
use Zend\Db\Adapter\Driver as ZdbDriver;
use Zend\Db\Adapter\Profiler\ProfilerInterface;
use Zend\Db\ResultSet;

class ProfilingAdapter extends Adapter
{
Expand All @@ -22,7 +23,7 @@ public function getProfiler()
return $this->profiler;
}

public function query($sql, $parametersOrQueryMode = self::QUERY_MODE_PREPARE)
public function query($sql, $parametersOrQueryMode = self::QUERY_MODE_PREPARE, ResultSet\ResultSetInterface $resultPrototype = null)
{
$this->getProfiler()->startQuery($sql);
$return = parent::query($sql, $parametersOrQueryMode);
Expand Down

0 comments on commit 362b83f

Please sign in to comment.