src/Application.php
public function run()
    {
        // For developers: WordPress debugging mode.
        $debug = env('WP_DEBUG', false);
        define('WP_DEBUG', $debug);
        define('WP_DEBUG_LOG', env('WP_DEBUG_LOG', false));
        define('WP_DEBUG_DISPLAY', env('WP_DEBUG_DISPLAY', $debug));
        define('SCRIPT_DEBUG', env('SCRIPT_DEBUG', $debug));

        // The database configuration with database name, username, password,
        // hostname charset and database collae type.
        define('DB_NAME', env('DB_NAME'));
        define('DB_USER', env('DB_USER'));
        define('DB_PASSWORD', env('DB_PASSWORD'));
        define('DB_HOST', env('DB_HOST'));
        define('DB_CHARSET', env('DB_CHARSET', 'utf8mb4'));
        define('DB_COLLATE', env('DB_COLLATE', 'utf8mb4_unicode_ci'));

        // Set the unique authentication keys and salts.
        define('AUTH_KEY', env('AUTH_KEY'));
        define('SECURE_AUTH_KEY', env('SECURE_AUTH_KEY'));
        define('LOGGED_IN_KEY', env('LOGGED_IN_KEY'));
        define('NONCE_KEY', env('NONCE_KEY'));
        define('AUTH_SALT', env('AUTH_SALT'));
        define('SECURE_AUTH_SALT', env('SECURE_AUTH_SALT'));
        define('LOGGED_IN_SALT', env('LOGGED_IN_SALT'));
        define('NONCE_SALT', env('NONCE_SALT'));

        // Set the home url to the current domain.
        $request = Request::createFromGlobals();
        define('WP_HOME', env('WP_URL', $request->getSchemeAndHttpHost()));

        // Set the WordPress directory path.
        define('WP_SITEURL', env('WP_SITEURL', sprintf('%s/%s', WP_HOME, env('WP_DIR', 'wordpress'))));

        // Set the WordPress content directory path.
        define('WP_CONTENT_DIR', env('WP_CONTENT_DIR', $this->getPublicPath()));
        define('WP_CONTENT_URL', env('WP_CONTENT_URL', WP_HOME));

        // Set the trash to less days to optimize WordPress.
        define('EMPTY_TRASH_DAYS', env('EMPTY_TRASH_DAYS', 7));

        // Set the default WordPress theme.
        define('WP_DEFAULT_THEME', env('WP_THEME', 'wordplate'));

        // Constant to configure core updates.
        define('WP_AUTO_UPDATE_CORE', env('WP_AUTO_UPDATE_CORE', 'minor'));

        // Specify the number of post revisions.
        define('WP_POST_REVISIONS', env('WP_POST_REVISIONS', 2));

        // Cleanup WordPress image edits.
        define('IMAGE_EDIT_OVERWRITE', env('IMAGE_EDIT_OVERWRITE', true));

        // Prevent file edititing from the dashboard.
        define('DISALLOW_FILE_EDIT', env('DISALLOW_FILE_EDIT', true));

        // Set the absolute path to the WordPress directory.
        if (!defined('ABSPATH')) {
            define('ABSPATH', sprintf('%s/%s/', $this->getPublicPath(), env('WP_DIR', 'wordpress')));
        }

        // Load the must-use plugins.
        $pluginLoader = new PluginLoader();
        $pluginLoader->load();
    }
public function run()
    {
        // For developers: WordPress debugging mode.
        $debug = env('WP_DEBUG', false);
        define('WP_DEBUG', $debug);
        define('WP_DEBUG_LOG', env('WP_DEBUG_LOG', false));
        define('WP_DEBUG_DISPLAY', env('WP_DEBUG_DISPLAY', $debug));
        define('SCRIPT_DEBUG', env('SCRIPT_DEBUG', $debug));

        // The database configuration with database name, username, password,
        // hostname charset and database collae type.
        define('DB_NAME', env('DB_NAME'));
        define('DB_USER', env('DB_USER'));
        define('DB_PASSWORD', env('DB_PASSWORD'));
        define('DB_HOST', env('DB_HOST'));
        define('DB_CHARSET', env('DB_CHARSET', 'utf8mb4'));
        define('DB_COLLATE', env('DB_COLLATE', 'utf8mb4_unicode_ci'));

        // Set the unique authentication keys and salts.
        define('AUTH_KEY', env('AUTH_KEY'));
        define('SECURE_AUTH_KEY', env('SECURE_AUTH_KEY'));
        define('LOGGED_IN_KEY', env('LOGGED_IN_KEY'));
        define('NONCE_KEY', env('NONCE_KEY'));
        define('AUTH_SALT', env('AUTH_SALT'));
        define('SECURE_AUTH_SALT', env('SECURE_AUTH_SALT'));
        define('LOGGED_IN_SALT', env('LOGGED_IN_SALT'));
        define('NONCE_SALT', env('NONCE_SALT'));

        // Set the home url to the current domain.
        $request = Request::createFromGlobals();
        define('WP_HOME', env('WP_URL', $request->getSchemeAndHttpHost()));

        // Set the WordPress directory path.
        define('WP_SITEURL', env('WP_SITEURL', sprintf('%s/%s', WP_HOME, env('WP_DIR', 'wordpress'))));

        // Set the WordPress content directory path.
        define('WP_CONTENT_DIR', env('WP_CONTENT_DIR', $this->getPublicPath()));
        define('WP_CONTENT_URL', env('WP_CONTENT_URL', WP_HOME));

        // Set the trash to less days to optimize WordPress.
        define('EMPTY_TRASH_DAYS', env('EMPTY_TRASH_DAYS', 7));

        // Set the default WordPress theme.
        define('WP_DEFAULT_THEME', env('WP_THEME', 'wordplate'));

        // Constant to configure core updates.
        define('WP_AUTO_UPDATE_CORE', env('WP_AUTO_UPDATE_CORE', 'minor'));

        // Specify the number of post revisions.
        define('WP_POST_REVISIONS', env('WP_POST_REVISIONS', 2));

        // Cleanup WordPress image edits.
        define('IMAGE_EDIT_OVERWRITE', env('IMAGE_EDIT_OVERWRITE', true));

        // Prevent file edititing from the dashboard.
        define('DISALLOW_FILE_EDIT', env('DISALLOW_FILE_EDIT', true));

        // Set the absolute path to the WordPress directory.
        if (!defined('ABSPATH')) {
            define('ABSPATH', sprintf('%s/%s/', $this->getPublicPath(), env('WP_DIR', 'wordpress')));
        }

        // Load the must-use plugins.
        $pluginLoader = new PluginLoader();
        $pluginLoader->load();
    }
public function run ( ) { // For developers: WordPress debugging mode. $ debug = env ( 'WP_DEBUG' , false ) ; define ( 'WP_DEBUG' , $ debug ) ; define ( 'WP_DEBUG_LOG' , env ( 'WP_DEBUG_LOG' , false ) ) ; define ( 'WP_DEBUG_DISPLAY' , env ( 'WP_DEBUG_DISPLAY' , $ debug ) ) ; define ( 'SCRIPT_DEBUG' , env ( 'SCRIPT_DEBUG' , $ debug ) ) ; // The database configuration with database name, username, password, // hostname charset and database collae type. define ( 'DB_NAME' , env ( 'DB_NAME' ) ) ; define ( 'DB_USER' , env ( 'DB_USER' ) ) ; define ( 'DB_PASSWORD' , env ( 'DB_PASSWORD' ) ) ; define ( 'DB_HOST' , env ( 'DB_HOST' ) ) ; define ( 'DB_CHARSET' , env ( 'DB_CHARSET' , 'utf8mb4' ) ) ; define ( 'DB_COLLATE' , env ( 'DB_COLLATE' , 'utf8mb4_unicode_ci' ) ) ; // Set the unique authentication keys and salts. define ( 'AUTH_KEY' , env ( 'AUTH_KEY' ) ) ; define ( 'SECURE_AUTH_KEY' , env ( 'SECURE_AUTH_KEY' ) ) ; define ( 'LOGGED_IN_KEY' , env ( 'LOGGED_IN_KEY' ) ) ; define ( 'NONCE_KEY' , env ( 'NONCE_KEY' ) ) ; define ( 'AUTH_SALT' , env ( 'AUTH_SALT' ) ) ; define ( 'SECURE_AUTH_SALT' , env ( 'SECURE_AUTH_SALT' ) ) ; define ( 'LOGGED_IN_SALT' , env ( 'LOGGED_IN_SALT' ) ) ; define ( 'NONCE_SALT' , env ( 'NONCE_SALT' ) ) ; // Set the home url to the current domain. $ request = Request :: createFromGlobals ( ) ; define ( 'WP_HOME' , env ( 'WP_URL' , $ request -> getSchemeAndHttpHost ( ) ) ) ; // Set the WordPress directory path. define ( 'WP_SITEURL' , env ( 'WP_SITEURL' , sprintf ( '%s/%s' , WP_HOME , env ( 'WP_DIR' , 'wordpress' ) ) ) ) ; // Set the WordPress content directory path. define ( 'WP_CONTENT_DIR' , env ( 'WP_CONTENT_DIR' , $ this -> getPublicPath ( ) ) ) ; define ( 'WP_CONTENT_URL' , env ( 'WP_CONTENT_URL' , WP_HOME ) ) ; // Set the trash to less days to optimize WordPress. define ( 'EMPTY_TRASH_DAYS' , env ( 'EMPTY_TRASH_DAYS' , 7 ) ) ; // Set the default WordPress theme. define ( 'WP_DEFAULT_THEME' , env ( 'WP_THEME' , 'wordplate' ) ) ; // Constant to configure core updates. define ( 'WP_AUTO_UPDATE_CORE' , env ( 'WP_AUTO_UPDATE_CORE' , 'minor' ) ) ; // Specify the number of post revisions. define ( 'WP_POST_REVISIONS' , env ( 'WP_POST_REVISIONS' , 2 ) ) ; // Cleanup WordPress image edits. define ( 'IMAGE_EDIT_OVERWRITE' , env ( 'IMAGE_EDIT_OVERWRITE' , true ) ) ; // Prevent file edititing from the dashboard. define ( 'DISALLOW_FILE_EDIT' , env ( 'DISALLOW_FILE_EDIT' , true ) ) ; // Set the absolute path to the WordPress directory. if ( ! defined ( 'ABSPATH' ) ) { define ( 'ABSPATH' , sprintf ( '%s/%s/' , $ this -> getPublicPath ( ) , env ( 'WP_DIR' , 'wordpress' ) ) ) ; } // Load the must-use plugins. $ pluginLoader = new PluginLoader ( ) ; $ pluginLoader -> load ( ) ; }
Star the application engine.

@return void
Star the application engine .