-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.php
More file actions
34 lines (30 loc) · 1.02 KB
/
functions.php
File metadata and controls
34 lines (30 loc) · 1.02 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
31
32
33
34
<?php
/**
* Theme Functions
*
* Main entry point for the Aegis theme. This file is responsible for
* bootstrapping the theme by loading necessary files and initializing the
* Aegis Framework.
*
* Responsibilities:
* - Loads the Composer autoloader to make all dependencies available.
* - Initializes the Aegis Framework by calling `Aegis::register()`.
*
* @package Aegis
* @since 1.0.0
* @author Atmostfear Entertainment
* @link https://github.com/aegiswp/theme
*/
// Enforces strict type checking for all code in this file.
declare(strict_types=1);
// Includes the Composer-generated autoloader to make all dependencies available.
require_once __DIR__ . '/vendor/autoload.php';
// Configure the theme updater for GitHub releases (must be before Aegis::register).
add_filter('aegis_theme_updater_config', function () {
return [
'repo' => 'aegiswp/theme',
'slug' => 'aegis',
];
});
// Registers the Aegis Framework, initializing all its components and services.
Aegis::register(__FILE__);