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 +20 -0 2.9.0 → 2.15.2 View file →
@@ -2,8 +2,9 @@
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;
7 8 use ImportWP\Common\Filesystem\ZipArchive;
8 9 use ImportWP\Common\Ftp\Ftp;
9 10 use ImportWP\Common\Http\Http;
@@ -9,8 +10,9 @@
9 10 use ImportWP\Common\Http\Http;
10 11 use ImportWP\Common\Importer\Template\TemplateManager;
11 12 use ImportWP\Common\Properties\Properties;
12 13 use ImportWP\Common\Rest\RestManager;
14 +use ImportWP\Common\UI\AdminNotices;
13 15 use ImportWP\Common\UI\ViewManager;
14 16 use ImportWP\Common\Util\Util;
15 17
16 18 class ServiceProvider
@@ -58,8 +60,18 @@
58 60 * @var Util
59 61 */
60 62 public $util;
61 63
64 + /**
65 + * @var AdminNotices
66 + */
67 + public $admin_notices;
68 +
69 + /**
70 + * @var CompatibilityManager
71 + */
72 + public $compatibility_manager;
73 +
62 74 public function __construct($event_handler)
63 75 {
64 76 $this->util = new Util();
65 77 $this->properties = new Properties();
@@ -70,6 +82,14 @@
70 82
71 83 $this->view_manager = new ViewManager($this->properties);
72 84 $this->template_manager = new TemplateManager($event_handler);
73 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);
74 94 }
75 95 }