Removes AccessControl from Migrator and Changelog

This commit is contained in:
Vlad
2017-08-17 10:17:19 -04:00
parent 8d8dfaa11f
commit efa231b08f
3 changed files with 6 additions and 12 deletions

View File

@@ -19,19 +19,17 @@ class MP2Migrator {
const CHUNK_SIZE = 10; // To import the data by batch
private $log_file;
private $access_control;
public $log_file_url;
public $progressbar;
private $segments_mapping = array(); // Mapping between old and new segment IDs
private $wp_users_segment;
public function __construct(AccessControl $access_control) {
public function __construct() {
$this->defineMP2Tables();
$log_filename = 'mp2migration.log';
$this->log_file = Env::$temp_path . '/' . $log_filename;
$this->log_file_url = Env::$temp_url . '/' . $log_filename;
$this->progressbar = new ProgressBar('mp2migration');
$this->access_control = $access_control;
}
private function defineMP2Tables() {
@@ -189,7 +187,7 @@ class MP2Migrator {
*
*/
private function eraseMP3Data() {
$activator = new Activator($this->access_control);
$activator = new Activator();
$activator->deactivate();
$activator->activate();