| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: Booktics |
| 5 |
* Plugin URI: https://arraytics.com/booktics/ |
| 6 |
* Description: Schedule, Appointment and Seat Booking plugin. |
| 7 |
* Version: 1.0.1 |
| 8 |
* Requires at least: 7.4 |
| 9 |
* Requires PHP: 7.4 |
| 10 |
* Author: Arraytics |
| 11 |
* Author URI: https://arraytics.com/ |
| 12 |
* License: GPL v2 or later |
| 13 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 14 |
* Text Domain: booktics |
| 15 |
* Domain Path: /languages |
| 16 |
|
| 17 |
* Booktics is free software: you can redistribute it and/or modify |
| 18 |
* it under the terms of the GNU General Public License as published by |
| 19 |
* the Free Software Foundation, either version 2 of the License, or |
| 20 |
* any later version. |
| 21 |
|
| 22 |
* Booktics Essential is distributed in the hope that it will be useful, |
| 23 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 25 |
* GNU General Public License for more details. |
| 26 |
|
| 27 |
* You should have received a copy of the GNU General Public License |
| 28 |
* along with Booktics. If not, see <http://www.gnu.org/licenses/>. |
| 29 |
* |
| 30 |
* @package Booktics |
| 31 |
* @category Core |
| 32 |
* @author Arraytics |
| 33 |
* @version 1.0.1 |
| 34 |
*/ |
| 35 |
|
| 36 |
use Booktics\Booktics; |
| 37 |
use Booktics\Providers\Global_Service_Provider; |
| 38 |
|
| 39 |
// Exit if accessed directly. |
| 40 |
defined( 'ABSPATH' ) || exit; |
| 41 |
|
| 42 |
|
| 43 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 44 |
|
| 45 |
|
| 46 |
// Define constant for the Plugin file. |
| 47 |
defined( 'BOOKTICS_FILE' ) || define( 'BOOKTICS_FILE', __FILE__ ); |
| 48 |
defined( 'BOOKTICS_DIR' ) || define( 'BOOKTICS_DIR', __DIR__ ); |
| 49 |
|
| 50 |
global $booktics_container; |
| 51 |
|
| 52 |
$booktics_container = new \Booktics\Container\Container(); |
| 53 |
|
| 54 |
$booktics_container->addServiceProvider( 'global', Global_Service_Provider::class ); |
| 55 |
|
| 56 |
/** |
| 57 |
* Booktics container |
| 58 |
* |
| 59 |
* @return \Booktics\Container\Container |
| 60 |
*/ |
| 61 |
function booktics_container() { |
| 62 |
global $booktics_container; |
| 63 |
|
| 64 |
return $booktics_container; |
| 65 |
} |
| 66 |
|
| 67 |
/** |
| 68 |
* Load Booktics Plugin when all plugins loaded. |
| 69 |
* |
| 70 |
* @return Booktics The singleton instance of Booktics. |
| 71 |
*/ |
| 72 |
function booktics() { |
| 73 |
return Booktics::instance(); |
| 74 |
} |
| 75 |
|
| 76 |
// Let's go. |
| 77 |
booktics(); |
| 78 |
|