concrete/src/Foundation/EnvironmentDetector.php
protected function detectConsoleEnvironment($environments, array $args)
    {
        // First we will check if an environment argument was passed via console arguments
        // and if it was that automatically overrides as the environment. Otherwise, we
        // will check the environment as a "web" request like a typical HTTP request.
        if (!is_null($value = $this->getEnvironmentArgument($args))) {
            return head(array_slice(explode('=', $value), 1));
        }
    }
protected function detectConsoleEnvironment($environments, array $args)
    {
        // First we will check if an environment argument was passed via console arguments
        // and if it was that automatically overrides as the environment. Otherwise, we
        // will check the environment as a "web" request like a typical HTTP request.
        if (!is_null($value = $this->getEnvironmentArgument($args))) {
            return head(array_slice(explode('=', $value), 1));
        }
    }
protected function detectConsoleEnvironment ( $ environments , array $ args ) { // First we will check if an environment argument was passed via console arguments // and if it was that automatically overrides as the environment. Otherwise, we // will check the environment as a "web" request like a typical HTTP request. if ( ! is_null ( $ value = $ this -> getEnvironmentArgument ( $ args ) ) ) { return head ( array_slice ( explode ( '=' , $ value ) , 1 ) ) ; } }
Set the application environment from command-line arguments.

@param  mixed   $environments
@param  array  $args

@return string
Set the application environment from command - line arguments .