public static function read($key = null)
    {
        if ($key === null) {
            return static::$config;
        }

        return isset(static::$config[$key]) ? static::$config[$key] : null;
    }
public static function read($key = null)
    {
        if ($key === null) {
            return static::$config;
        }

        return isset(static::$config[$key]) ? static::$config[$key] : null;
    }
public static function read ( $ key = null ) { if ( $ key === null ) { return static :: $ config ; } return isset ( static :: $ config [ $ key ] ) ? static :: $ config [ $ key ] : null ; }
Read a config variable or all the config.

### Usage

Reading config with key:

```
Message::read('message');
```

Reading all the config:

```
Message::read();
```

@param string|null The key to read the configuration.

@return mixed
Read a config variable or all the config .