Commit 3c016285 authored by Taylor Otwell's avatar Taylor Otwell

make log function non-static.

parent 982e009a
...@@ -222,7 +222,7 @@ class Connection { ...@@ -222,7 +222,7 @@ class Connection {
// execution time in a static array that is accessed by all of // execution time in a static array that is accessed by all of
// the connections used by the application. This allows us to // the connections used by the application. This allows us to
// review all of the executed SQL. // review all of the executed SQL.
static::log($sql, $bindings, $time); $this->log($sql, $bindings, $time);
return array($statement, $result); return array($statement, $result);
} }
...@@ -268,7 +268,7 @@ class Connection { ...@@ -268,7 +268,7 @@ class Connection {
* @param int $time * @param int $time
* @return void * @return void
*/ */
protected static function log($sql, $bindings, $time) protected function log($sql, $bindings, $time)
{ {
Event::fire('laravel: query', array($sql, $bindings, $time)); Event::fire('laravel: query', array($sql, $bindings, $time));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment