forked from Awesome-Support/importer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
awesome-support-importer.php
executable file
·42 lines (37 loc) · 1.38 KB
/
awesome-support-importer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* @package Awesome Support: Importer
* @author Pressware, LLC <[email protected]>
* @license GPL-2.0+
* @link https://pressware.co
* @copyright 2017 Pressware, LLC
*
* @wordpress-plugin
* Plugin Name: Awesome Support: Importer
* Plugin URI: TODO: URL to the final build.
* Description: Allows users to import tickets from a variety of help desks into Awesome Support.
* Version: 1.5.0
* Author: Pressware, LLC for Awesome Support
* Author URI: https://pressware.co
* Text Domain: awesome-support-importer
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
*/
namespace Pressware\AwesomeSupport;
use Pressware\AwesomeSupport\Notifications\NotifierServiceProvider;
use Pressware\AwesomeSupport\PluginAPI\Manager;
use Pressware\AwesomeSupport\Subscriber\ServiceProvider as SubscriberServiceProvider;
require_once 'vendor/autoload.php';
$loggerConfig = (array)require __DIR__ . '/config/logger.php';
$loggerConfig['rootPath'] = __DIR__;
$plugin = new Plugin(
__FILE__,
(array)require __DIR__ . '/config/plugin.php',
new SubscriberServiceProvider(
(new NotifierServiceProvider())->create($loggerConfig)
),
new Manager(),
new Options('awesome_support')
);
add_action('plugins_loaded', [$plugin, 'load']);