src/Core/EnvironmentDetector.php
protected function detectConsoleEnvironment(Closure $callback, array $args)
    {
        if (! is_null($value = $this->getEnvironmentArgument($args))) {
            return head(array_slice(explode('=', $value), 1));
        }

        return $this->detectWebEnvironment($callback);
    }
protected function detectConsoleEnvironment(Closure $callback, array $args)
    {
        if (! is_null($value = $this->getEnvironmentArgument($args))) {
            return head(array_slice(explode('=', $value), 1));
        }

        return $this->detectWebEnvironment($callback);
    }
protected function detectConsoleEnvironment ( Closure $ callback , array $ args ) { if ( ! is_null ( $ value = $ this -> getEnvironmentArgument ( $ args ) ) ) { return head ( array_slice ( explode ( '=' , $ value ) , 1 ) ) ; } return $ this -> detectWebEnvironment ( $ callback ) ; }
Set the application environment for a command-line request.

@param Closure $callback
@param array   $args

@return string
Set the application environment for a command - line request .