mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 16:06:06 +01:00
11 lines
281 B
PHP
11 lines
281 B
PHP
<?php
|
|
|
|
// Initiate Autoload of Grav classes
|
|
spl_autoload_register(function ($class) {
|
|
|
|
if (strpos($class, 'Grav\\Common') === 0 || strpos($class, 'Grav\\Console') === 0) {
|
|
$filename = str_replace('\\', '/', LIB_DIR.$class.'.php');
|
|
include($filename);
|
|
}
|
|
});
|