Esempio n. 1
0
            <div id="message" class="error">
                <p><?php 
        _e(sprintf('<b>Themosis framework:</b> %s', "The autoload.php file is missing or there is a namespace error inside your composer.json file."), THEMOSIS_FRAMEWORK_TEXTDOMAIN);
        ?>
</p>
            </div>
        <?php 
    });
    // Message for the front-end
    if (!is_admin()) {
        wp_die(__("The <strong>Themosis framework</strong> is not loaded properly. Please check your <strong>composer.json</strong> file configuration.", THEMOSIS_FRAMEWORK_TEXTDOMAIN));
    }
    return;
}
// Start the project...
$app = new Themosis\Core\Application();
/*----------------------------------------------------*/
// Set the application paths.
/*----------------------------------------------------*/
$app->bindInstallPaths($GLOBALS['themosis_paths']);
/*----------------------------------------------------*/
// Bind the application in the container.
/*----------------------------------------------------*/
$app->instance('app', $app);
/*----------------------------------------------------*/
// Load the facades.
/*----------------------------------------------------*/
Themosis\Facades\Facade::clearResolvedInstances();
Themosis\Facades\Facade::setFacadeApplication($app);
/*----------------------------------------------------*/
// Register Facade Aliases To Full Classes
Esempio n. 2
0
            <div id="message" class="error">
                <p><?php 
        _e(sprintf('<b>Themosis framework:</b> %s', "The autoload.php file is missing or there is a namespace error inside your composer.json file."), THEMOSIS_FRAMEWORK_TEXTDOMAIN);
        ?>
</p>
            </div>
        <?php 
    });
    // Message for the front-end
    if (!is_admin()) {
        wp_die(__("The <strong>Themosis framework</strong> is not loaded properly. Please check your <strong>composer.json</strong> file configuration.", THEMOSIS_FRAMEWORK_TEXTDOMAIN));
    }
    return;
}
// Start the project...
$app = new Themosis\Core\Application();
/*----------------------------------------------------*/
// Set the application paths.
/*----------------------------------------------------*/
$paths = apply_filters('themosis_application_paths', ['plugin' => dirname(__DIR__), 'sys' => dirname(__DIR__) . DS . 'src' . DS . 'Themosis' . DS]);
$app->bindInstallPaths($paths);
/*----------------------------------------------------*/
// Bind the application in the container.
/*----------------------------------------------------*/
$app->instance('app', $app);
/*----------------------------------------------------*/
// Load the facades.
/*----------------------------------------------------*/
Themosis\Facades\Facade::clearResolvedInstances();
Themosis\Facades\Facade::setFacadeApplication($app);
/*----------------------------------------------------*/