-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
32 lines (28 loc) · 1019 Bytes
/
functions.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
<?php
if (!defined('ABSPATH')) { exit; }
/*
|--------------------------------------------------------------------------
| Defines a named constant at runtime.
|--------------------------------------------------------------------------
*/
define("APP_ENV", 'dev'); // dev, prod
define("APP_PATH", get_template_directory() . '/');
define("APP_URI", get_stylesheet_directory_uri() . '/');
define('APP_DOMAIN', 'app');
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
*/
if ( !file_exists($composer = APP_PATH . 'vendor/autoload.php') ) {
wp_die(
__('Error locating autoloader. Run <code>composer install</code>.', APP_DOMAIN)
);
}
require $composer;
/*
|--------------------------------------------------------------------------
| Register Theme Files
|--------------------------------------------------------------------------
*/
require_once APP_PATH . 'app/app.php';