This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update feature: Minor refactor to minion module
- Loading branch information
Gleez Technologies
committed
Jun 2, 2014
1 parent
7cbf731
commit a07ca58
Showing
4 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,8 +44,13 @@ class Migration { | |
* @param Database $db The database connection that should be passed to migrations | ||
* @param Model_Migration $model Inject an instance of the minion model into the manager | ||
*/ | ||
public function __construct(Database $db, Model_Migration $model = NULL) | ||
public function __construct($db = NULL, Model_Migration $model = NULL) | ||
{ | ||
if($db == NULL) | ||
{ | ||
$db = Database::instance(NULL); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sandeepone
Member
|
||
} | ||
|
||
if ($model === NULL) | ||
{ | ||
$model = new Model_Migration($db); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it is contrary to freedom from dependency