public function config($location)
    {
        $keys = explode('.', $location);

        $filename = 'get' . strtoupper(array_shift($keys));

        $location = implode('.', $keys);

        if(empty($location)) {
            return $this->config->{$filename}();
        }

        return $this->config->{$filename}($location);
    }
public function config($location)
    {
        $keys = explode('.', $location);

        $filename = 'get' . strtoupper(array_shift($keys));

        $location = implode('.', $keys);

        if(empty($location)) {
            return $this->config->{$filename}();
        }

        return $this->config->{$filename}($location);
    }
public function config ( $ location ) { $ keys = explode ( '.' , $ location ) ; $ filename = 'get' . strtoupper ( array_shift ( $ keys ) ) ; $ location = implode ( '.' , $ keys ) ; if ( empty ( $ location ) ) { return $ this -> config -> { $ filename } ( ) ; } return $ this -> config -> { $ filename } ( $ location ) ; }
To get configuration

@param string $location

@return mixed
To get configuration