PluginProbe
Import WP – CSV & XML Import Export for WordPress / 2.7.14
Import WP – CSV & XML Import Export for WordPress v2.7.14
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 2.9.1 All 144 releases
jc-importer / class / Free / ServiceProvider.php

ServiceProvider.php in Import WP – CSV & XML Import Export for WordPress 2.7.14, at class/Free/ServiceProvider.php

44 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ImportWP\Free;
4
5 use ImportWP\Common\Exporter\ExporterManager;
6 use ImportWP\Common\Rest\RestManager;
7 use ImportWP\Common\Importer\ImporterManager;
8 use ImportWP\Common\Plugin\Menu;
9
10 class ServiceProvider extends \ImportWP\ServiceProvider
11 {
12 /**
13 * @var ImporterManager
14 */
15 public $importer_manager;
16
17 /**
18 * @var ExporterManager
19 */
20 public $exporter_manager;
21
22 /**
23 * @var Menu
24 */
25 public $menu;
26
27 /**
28 * @var RestManager
29 */
30 public $rest_manager;
31
32 public function __construct($event_handler)
33 {
34 parent::__construct($event_handler);
35
36 $this->importer_manager = new ImporterManager($this->filesystem, $this->template_manager, $event_handler);
37 $this->exporter_manager = new ExporterManager();
38 $this->menu = new Menu($this->properties, $this->view_manager, $this->importer_manager, $this->template_manager);
39 $this->rest_manager = new RestManager($this->importer_manager, $this->exporter_manager, $this->properties, $this->http, $this->filesystem, $this->template_manager, $event_handler);
40
41 do_action('iwp/register_events', $event_handler, $this);
42 }
43 }
44