Example #1
0
<?php

if (!defined('YARE_MIGRATION')) {
    define('YARE_MIGRATION', '\\Migration\\');
}
if (!defined('YARE_VIEW')) {
    define('YARE_VIEW', '\\View\\');
}
if (!defined('YARE_MODEL')) {
    define('YARE_MODEL', '\\Model\\');
}
class_alias('Yare\\Yare', 'Yare');
$files = array('helpers.php', 'utils.php', 'php-console.php', 'setup.php', 'asset.php', 'admin.php', 'theme.php', 'acf.php', 'templates.php', 'filters.php');
new Yare\Columns();
foreach ($files as $file) {
    require_once __DIR__ . '/support/' . $file;
}
$aliases = Yare::config('register.aliases', array());
foreach ($aliases as $alias => $original) {
    class_alias($original, $alias);
}
unset($aliases);
if (!function_exists('pc')) {
    function pc($var, $tag = 'debug')
    {
    }
}
foreach (glob(Yare::path('src/support/*.php')) as $file) {
    require_once $file;
}
Yare\AdminMenuPage::loader();