EnvironmentDetector
class EnvironmentDetector (View source)
Class EnvironmentDetector.
This is a straight copy from Laravel. https://github.com/laravel/framework/blob/7172f42496f3f6f1f7aa3e0dc87065a582ffd0a7/src/Illuminate/Foundation/EnvironmentDetector.php
\@package Concrete\Core\Foundation
Methods
Detect the application's current environment.
Set the application environment for a web request.
Set the application environment from command-line arguments.
Set the application environment from environment variable.
Set the application environment from the passed closure in case a closure was passed.
Get the environment argument from the console.
Gets the environment from the CONCRETE5_ENV environment variable.
Determine if the name matches the machine name.
Details
        
                            string
    detect(array|string $environments, array|null $consoleArgs = null)
        
    
    Detect the application's current environment.
        
                    protected        string
    detectWebEnvironment(array|string $environments)
        
    
    Set the application environment for a web request.
        
                    protected        string
    detectConsoleEnvironment(mixed $environments, array $args)
        
    
    Set the application environment from command-line arguments.
        
                    protected        string|null
    detectVariableEnvironment(mixed $environments)
        
    
    Set the application environment from environment variable.
        
                    protected        string|null
    detectClosureEnvironment(mixed $environments)
        
    
    Set the application environment from the passed closure in case a closure was passed.
        
                    protected        string|null
    getEnvironmentArgument(array $args)
        
    
    Get the environment argument from the console.
        
                    protected        string|bool
    getEnvironmentFromVariable()
        
    
    Gets the environment from the CONCRETE5_ENV environment variable.
        
                            bool
    isMachine(string $name)
        
    
    Determine if the name matches the machine name.