PluginProbe
Import WP – CSV & XML Import Export for WordPress / 2.8.1
Import WP – CSV & XML Import Export for WordPress v2.8.1
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 / ServiceProvider.php

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

76 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ImportWP;
4
5 use ImportWP\Common\Attachment\Attachment;
6 use ImportWP\Common\Filesystem\Filesystem;
7 use ImportWP\Common\Filesystem\ZipArchive;
8 use ImportWP\Common\Ftp\Ftp;
9 use ImportWP\Common\Http\Http;
10 use ImportWP\Common\Importer\Template\TemplateManager;
11 use ImportWP\Common\Properties\Properties;
12 use ImportWP\Common\Rest\RestManager;
13 use ImportWP\Common\UI\ViewManager;
14 use ImportWP\Common\Util\Util;
15
16 class ServiceProvider
17 {
18 /**
19 * @var Properties
20 */
21 public $properties;
22 /**
23 * @var Filesystem
24 */
25 public $filesystem;
26 /**
27 * @var Attachment
28 */
29 public $attachment;
30 /**
31 * @var Ftp
32 */
33 public $ftp;
34 /**
35 * @var Http
36 */
37 public $http;
38 /**
39 * @var ViewManager
40 */
41 public $view_manager;
42 /**
43 * @var RestManager
44 */
45 public $rest_manager;
46
47 /**
48 * @var TemplateManager
49 */
50 protected $template_manager;
51
52 /**
53 * @var ZipArchive
54 */
55 protected $zip_archive;
56
57 /**
58 * @var Util
59 */
60 public $util;
61
62 public function __construct($event_handler)
63 {
64 $this->util = new Util();
65 $this->properties = new Properties();
66 $this->filesystem = new Filesystem($event_handler);
67 $this->attachment = new Attachment();
68 $this->ftp = new Ftp($this->filesystem);
69 $this->http = new Http($this->properties);
70
71 $this->view_manager = new ViewManager($this->properties);
72 $this->template_manager = new TemplateManager($event_handler);
73 $this->zip_archive = new ZipArchive();
74 }
75 }
76