-
Notifications
You must be signed in to change notification settings - Fork 1
/
bn-testbed.php
48 lines (42 loc) · 1.27 KB
/
bn-testbed.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
48
<?php
/**
* Bright Nucleus Testbed
*
* @package BrightNucleus\Testbed
* @author Alain Schlesser <[email protected]>
* @license GPL-2.0+
* @link https://www.brightnucleus.com/
* @copyright 2016 Bright Nucleus, Alain Schlesser
*
* @wordpress-plugin
* Plugin Name: Bright Nucleus Testbed
* Plugin URI: https://www.brightnucleus.com/
* Description: Testing grounds for the different Bright Nucleus components.
* Version: 0.1.0
* Author: Alain Schlesser
* Author URI: https://www.alainschlesser.com/
* Text Domain: bn-testbed
* Domain Path: /languages
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
namespace BrightNucleus\Testbed;
use BrightNucleus\Config\ConfigFactory;
use BrightNucleus\Testbed\Plugin as Testbed;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! defined( 'BN_TESTBED_DIR' ) ) {
define( 'BN_TESTBED_DIR', plugin_dir_path( __FILE__ ) );
}
// Load Composer autoloader.
if ( file_exists( BN_TESTBED_DIR . '/vendor/autoload.php' ) ) {
require_once BN_TESTBED_DIR . '/vendor/autoload.php';
}
// Initialize the plugin.
$config = ConfigFactory::createSubConfig(
BN_TESTBED_DIR . '/config/defaults.php',
__NAMESPACE__
);
( new Testbed( $config ) )->register();