PluginProbe
Import WP – CSV & XML Import Export for WordPress / 2.15.2
Import WP – CSV & XML Import Export for WordPress v2.15.2
2.15.2 2.15.1 2.15.0 2.14.24 2.14.23 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.9.0 All 145 releases
← All changes | class/ServiceProvider.php +27 -0 2.7.3 → 2.15.2 View file →
@@ -2,14 +2,17 @@
2 2
3 3 namespace ImportWP;
4 4
5 5 use ImportWP\Common\Attachment\Attachment;
6 +use ImportWP\Common\Compatibility\CompatibilityManager;
6 7 use ImportWP\Common\Filesystem\Filesystem;
8 +use ImportWP\Common\Filesystem\ZipArchive;
7 9 use ImportWP\Common\Ftp\Ftp;
8 10 use ImportWP\Common\Http\Http;
9 11 use ImportWP\Common\Importer\Template\TemplateManager;
10 12 use ImportWP\Common\Properties\Properties;
11 13 use ImportWP\Common\Rest\RestManager;
14 +use ImportWP\Common\UI\AdminNotices;
12 15 use ImportWP\Common\UI\ViewManager;
13 16 use ImportWP\Common\Util\Util;
14 17
15 18 class ServiceProvider
@@ -48,12 +51,27 @@
48 51 */
49 52 protected $template_manager;
50 53
51 54 /**
55 + * @var ZipArchive
56 + */
57 + protected $zip_archive;
58 +
59 + /**
52 60 * @var Util
53 61 */
54 62 public $util;
55 63
64 + /**
65 + * @var AdminNotices
66 + */
67 + public $admin_notices;
68 +
69 + /**
70 + * @var CompatibilityManager
71 + */
72 + public $compatibility_manager;
73 +
56 74 public function __construct($event_handler)
57 75 {
58 76 $this->util = new Util();
59 77 $this->properties = new Properties();
@@ -63,6 +81,15 @@
63 81 $this->http = new Http($this->properties);
64 82
65 83 $this->view_manager = new ViewManager($this->properties);
66 84 $this->template_manager = new TemplateManager($event_handler);
85 + $this->zip_archive = new ZipArchive();
86 + $this->admin_notices = new AdminNotices();
87 +
88 + $this->properties->mu_plugin_version = 2;
89 + $this->properties->mu_plugin_dir = (defined('WPMU_PLUGIN_DIR') && defined('WPMU_PLUGIN_URL')) ? WPMU_PLUGIN_DIR : trailingslashit(WP_CONTENT_DIR) . 'mu-plugins';
90 + $this->properties->mu_plugin_source = trailingslashit($this->properties->plugin_dir_path) . 'compatibility/importwp-compatibility.php';
91 + $this->properties->mu_plugin_dest = trailingslashit($this->properties->mu_plugin_dir) . 'importwp-compatibility.php';
92 +
93 + $this->compatibility_manager = new CompatibilityManager($this->properties, $this->filesystem);
67 94 }
68 95 }