-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmergebot-schema-generator.php
47 lines (40 loc) · 1.33 KB
/
mergebot-schema-generator.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: Mergebot Schema Generator
Plugin URI: http://deliciousbrains.com
Description: Plugin schema generator for Mergebot
Author: Delicious Brains
Version: 0.1
Author URI: http://deliciousbrains.com/
// Copyright (c) 2016 Delicious Brains. All rights reserved.
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
*/
use DeliciousBrains\MergebotSchemaGenerator\Mergebot_Schema_Generator;
if ( ! defined( 'ABSPATH' ) ) {
// Exit if accessed directly
exit;
}
if ( defined( 'WP_CLI' ) && WP_CLI ) {
require_once dirname( __FILE__ ) . '/classes/command.php';
}
/**
* The main function responsible for returning the one true instance to functions everywhere.
*/
function mergebot_schema_generator() {
// Load the main class
require_once dirname( __FILE__ ) . '/classes/plugin.php';
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}
return Mergebot_Schema_Generator::get_instance( __FILE__ );
}
// Initialize the plugin
mergebot_schema_generator();