-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
30 lines (24 loc) · 1.26 KB
/
init.php
File metadata and controls
30 lines (24 loc) · 1.26 KB
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
<?php
// WEBENTOR_CORE_PHP_PATH should always be defined, but use this as a fallback
if (!defined('WEBENTOR_CORE_PHP_PATH')) {
define('WEBENTOR_CORE_PHP_PATH', __DIR__);
}
define('WEBENTOR_CORE_PUBLIC_PATH', WEBENTOR_CORE_PHP_PATH . '/public/build');
define('WEBENTOR_CORE_MANIFEST_PATH', WEBENTOR_CORE_PUBLIC_PATH . '/manifest.json');
define('WEBENTOR_CORE_RESOURCES_PATH', WEBENTOR_CORE_PHP_PATH . '/resources');
define('WEBENTOR_CORE_VITE_MANIFEST_DIR', WEBENTOR_CORE_PHP_PATH . '/public/build');
define('WEBENTOR_CORE_RESOURCES_DIR', WEBENTOR_CORE_PHP_PATH . '/resources');
// Autoload composer dependencies
if (file_exists($composer = WEBENTOR_CORE_PHP_PATH . '/vendor/autoload.php')) {
require $composer;
}
// Load core files
require_once WEBENTOR_CORE_PHP_PATH . '/app/acf.php';
require_once WEBENTOR_CORE_PHP_PATH . '/app/blocks-init.php';
require_once WEBENTOR_CORE_PHP_PATH . '/app/blocks-settings.php';
require_once WEBENTOR_CORE_PHP_PATH . '/app/blocks-migration.php';
require_once WEBENTOR_CORE_PHP_PATH . '/app/CloudinaryClient.php';
require_once WEBENTOR_CORE_PHP_PATH . '/app/i18n.php';
require_once WEBENTOR_CORE_PHP_PATH . '/app/images.php';
require_once WEBENTOR_CORE_PHP_PATH . '/app/setup-core.php';
require_once WEBENTOR_CORE_PHP_PATH . '/app/utils.php';