database refactoring for dependency injection and other general refactoring.

This commit is contained in:
Taylor Otwell
2011-09-04 21:45:37 -05:00
parent c2f5e7eeb5
commit 3e874867b8
5 changed files with 30 additions and 18 deletions

View File

@@ -90,12 +90,12 @@ class Query {
/**
* Create a new query instance.
*
* @param string $table
* @param Connection $connection
* @param Compiler $compiler
* @param string $table
* @return void
*/
public function __construct($table, Connection $connection, Query\Compiler $compiler)
public function __construct(Connection $connection, Query\Compiler $compiler, $table)
{
$this->table = $table;
$this->compiler = $compiler;