src/Configuration.php
private static function findDirectories(): string
    {
        if ($value = trim((string) self::getEnvVariable(self::CONFIG_PATH))) {
            // add env config path to top of possible locations.
            array_unshift(self::$possibleLocations, $value);
        }

        foreach (self::$possibleLocations as $path) {
            if (($location = realpath($path)) !== false) {
                return $location;
            }
        }

        throw new LogicException(sprintf(
            'Configuration directory not found in known path\'s: %s',
            join(',', self::$possibleLocations)
        ));
    }
private static function findDirectories(): string
    {
        if ($value = trim((string) self::getEnvVariable(self::CONFIG_PATH))) {
            // add env config path to top of possible locations.
            array_unshift(self::$possibleLocations, $value);
        }

        foreach (self::$possibleLocations as $path) {
            if (($location = realpath($path)) !== false) {
                return $location;
            }
        }

        throw new LogicException(sprintf(
            'Configuration directory not found in known path\'s: %s',
            join(',', self::$possibleLocations)
        ));
    }
private static function findDirectories ( ) : string { if ( $ value = trim ( ( string ) self :: getEnvVariable ( self :: CONFIG_PATH ) ) ) { // add env config path to top of possible locations. array_unshift ( self :: $ possibleLocations , $ value ) ; } foreach ( self :: $ possibleLocations as $ path ) { if ( ( $ location = realpath ( $ path ) ) !== false ) { return $ location ; } } throw new LogicException ( sprintf ( 'Configuration directory not found in known path\'s: %s' , join ( ',' , self :: $ possibleLocations ) ) ) ; }
Automatically find configuration in possible paths.

@return string
Automatically find configuration in possible paths .