public function useAccount($account = null)
    {
        $account = $account ?: Core::instance()->getConfig('default');

        if (!Core::instance()->getConfig("accounts.{$account}")) {
            throw new Exception('Invalid account selected');
        }

        $this->account = $account;

        return $this;
    }
public function useAccount($account = null)
    {
        $account = $account ?: Core::instance()->getConfig('default');

        if (!Core::instance()->getConfig("accounts.{$account}")) {
            throw new Exception('Invalid account selected');
        }

        $this->account = $account;

        return $this;
    }
public function useAccount ( $ account = null ) { $ account = $ account ? : Core :: instance ( ) -> getConfig ( 'default' ) ; if ( ! Core :: instance ( ) -> getConfig ( "accounts.{$account}" ) ) { throw new Exception ( 'Invalid account selected' ) ; } $ this -> account = $ account ; return $ this ; }
Set the account to be used when resoving configs.

@param string $account

@return self
Set the account to be used when resoving configs .