-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitepilot.php
34 lines (28 loc) · 1021 Bytes
/
sitepilot.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
<?php
use Sitepilot\Framework\Foundation\Application;
/**
* Plugin Name: Sitepilot
* Plugin URI: https://sitepilot.io
* Author: Sitepilot
* Author URI: https://sitepilot.io
* Version: 1.0.0-dev
* Description: Brings the powers of Sitepilot directly to your WordPress website.
* Text Domain: sitepilot
*/
if (!defined('ABSPATH')) exit;
require __DIR__ . '/vendor/autoload.php';
new Application('sitepilot', __FILE__, [
\Sitepilot\Plugin\Providers\PluginServiceProvider::class,
\Sitepilot\Plugin\Providers\CacheServiceProvider::class,
\Sitepilot\Plugin\Providers\UpdateServiceProvider::class,
\Sitepilot\Plugin\Providers\BrandingServiceProvider::class,
\Sitepilot\Plugin\Providers\DashboardServiceProvider::class,
\Sitepilot\Plugin\Providers\ClientRoleServiceProvider::class,
\Sitepilot\Plugin\Providers\LitespeedCacheServiceProvider::class
]);
if (!function_exists('sitepilot')) {
function sitepilot(): ?Application
{
return Application::app('sitepilot');
}
}