# jc-importer/2.8.3/class/ServiceProvider.php

Import WP – CSV &amp; XML Import Export for WordPress, version 2.8.3. 76 lines.

- Page: https://pluginprobe.com/plugins/jc-importer/2.8.3/code/class/ServiceProvider.php
- Raw: https://pluginprobe.com/plugins/jc-importer/2.8.3/raw/class/ServiceProvider.php
- Modified: 2023-07-26T18:45:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jc-importer/2.8.3/code/class/ServiceProvider.php#L10-L20`.

```php
<?php

namespace ImportWP;

use ImportWP\Common\Attachment\Attachment;
use ImportWP\Common\Filesystem\Filesystem;
use ImportWP\Common\Filesystem\ZipArchive;
use ImportWP\Common\Ftp\Ftp;
use ImportWP\Common\Http\Http;
use ImportWP\Common\Importer\Template\TemplateManager;
use ImportWP\Common\Properties\Properties;
use ImportWP\Common\Rest\RestManager;
use ImportWP\Common\UI\ViewManager;
use ImportWP\Common\Util\Util;

class ServiceProvider
{
    /**
     * @var Properties
     */
    public $properties;
    /**
     * @var Filesystem
     */
    public $filesystem;
    /**
     * @var Attachment
     */
    public $attachment;
    /**
     * @var Ftp
     */
    public $ftp;
    /**
     * @var Http
     */
    public $http;
    /**
     * @var ViewManager
     */
    public $view_manager;
    /**
     * @var RestManager
     */
    public $rest_manager;

    /**
     * @var TemplateManager
     */
    protected $template_manager;

    /**
     * @var ZipArchive
     */
    protected $zip_archive;

    /**
     * @var Util
     */
    public $util;

    public function __construct($event_handler)
    {
        $this->util = new Util();
        $this->properties = new Properties();
        $this->filesystem = new Filesystem($event_handler);
        $this->attachment = new Attachment();
        $this->ftp = new Ftp($this->filesystem);
        $this->http = new Http($this->properties);

        $this->view_manager = new ViewManager($this->properties);
        $this->template_manager = new TemplateManager($event_handler);
        $this->zip_archive = new ZipArchive();
    }
}

```
