src/classes/AppPhinx.php
private function loadEnvironment()
    {
        /**
         * Application Environment
         */
        $required_env = [
            # application configuration
            'APP_NAME', 'APP_ENV', 'APP_KEY',

            # database configuration
            'DB_HOSTNAME', 'DB_PORT', 'DB_USERNAME', 'DB_PASSWORD', 'DB_NAME',

            # application mode
            'APP_MODE'
        ];

        $root = $_SERVER['PWD'];

        $dotenv = new Dotenv($root);
        $dotenv->overload();
        $dotenv->required($required_env);
    }
private function loadEnvironment()
    {
        /**
         * Application Environment
         */
        $required_env = [
            # application configuration
            'APP_NAME', 'APP_ENV', 'APP_KEY',

            # database configuration
            'DB_HOSTNAME', 'DB_PORT', 'DB_USERNAME', 'DB_PASSWORD', 'DB_NAME',

            # application mode
            'APP_MODE'
        ];

        $root = $_SERVER['PWD'];

        $dotenv = new Dotenv($root);
        $dotenv->overload();
        $dotenv->required($required_env);
    }
private function loadEnvironment ( ) { /**
         * Application Environment
         */ $ required_env = [ # application configuration 'APP_NAME' , 'APP_ENV' , 'APP_KEY' , # database configuration 'DB_HOSTNAME' , 'DB_PORT' , 'DB_USERNAME' , 'DB_PASSWORD' , 'DB_NAME' , # application mode 'APP_MODE' ] ; $ root = $ _SERVER [ 'PWD' ] ; $ dotenv = new Dotenv ( $ root ) ; $ dotenv -> overload ( ) ; $ dotenv -> required ( $ required_env ) ; }
Load the environment of the Application Phinx.

@return void
Load the environment of the Application Phinx .