forked from flagshipcompany/flagship-for-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flagship-for-woocommerce.php
executable file
·47 lines (39 loc) · 1.46 KB
/
flagship-for-woocommerce.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
43
44
45
46
47
<?php
/*
* Plugin Name: FlagShip WooCommerce Shipping
* Plugin URI: https://github.com/flagshipcompany/flagship-for-woocommerce
* Description: An e-shipping courier solution that helps you shipping anything from Canada. Beautifully. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="https://smartship-ng.flagshipcompany.com/">Sign up for an FlagShip account</a> to get an API key, and 3) Go to settings page to fill basic shipping credentials
* Version: 3.0.6
* Author: FlagShip Courier Solutions
* Requires at least: 4.6
* Tested up to: 5.5.3
* WC tested up to: 4.7.1
*
* Text Domain: flagship-for-woocommerce
* Domain Path: /languages/
*
* Copyright: © 2017 FlagShip Courier Solution.
* License: General Public License v3.0
* License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
*/
// prevent data leak
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
}
if (!class_exists('\\FS\\Injection\\I')) {
require __DIR__.'/src/Injection/I.php';
}
use FS\Injection\I;
use FS\Context\ApplicationContext as App;
use FS\Container;
use FS\Configurator;
I::boot(__DIR__);
// convenient way to define text domain
define('FLAGSHIP_SHIPPING_TEXT_DOMAIN', I::textDomain());
// init app
I::group(function () {
App::initialize(new Container(), new Configurator());
}, [
'dependencies' => ['woocommerce/woocommerce.php'],
]);
\register_activation_hook(__FILE__, array('\\FS\\Injection\\I', 'fls_plugin_activate'));