Refactor activator class.
This commit is contained in:
@@ -9,6 +9,10 @@ class Activator {
|
||||
}
|
||||
|
||||
function init() {
|
||||
$this->migrator = new Migrator;
|
||||
}
|
||||
|
||||
function register_activation() {
|
||||
register_activation_hook(
|
||||
Env::$file,
|
||||
array($this, 'activate')
|
||||
@@ -16,7 +20,6 @@ class Activator {
|
||||
}
|
||||
|
||||
public function activate() {
|
||||
$migrator = new Migrator;
|
||||
$migrator->up();
|
||||
$this->migrator->up();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user