Install/Installer.php
public function installCurrencies($code = 'USD')
    {
        $currencyNames = Intl::getCurrencyBundle()->getCurrencyNames();

        if (!isset($currencyNames[$code])) {
            throw new InvalidArgumentException("Invalid default currency code '$code'.");
        }

        asort($currencyNames);

        $this->generate(Currency::class, $currencyNames, $code);
    }
public function installCurrencies($code = 'USD')
    {
        $currencyNames = Intl::getCurrencyBundle()->getCurrencyNames();

        if (!isset($currencyNames[$code])) {
            throw new InvalidArgumentException("Invalid default currency code '$code'.");
        }

        asort($currencyNames);

        $this->generate(Currency::class, $currencyNames, $code);
    }
public function installCurrencies ( $ code = 'USD' ) { $ currencyNames = Intl :: getCurrencyBundle ( ) -> getCurrencyNames ( ) ; if ( ! isset ( $ currencyNames [ $ code ] ) ) { throw new InvalidArgumentException ( "Invalid default currency code '$code'." ) ; } asort ( $ currencyNames ) ; $ this -> generate ( Currency :: class , $ currencyNames , $ code ) ; }
Installs the currencies.

@param string $code The default currency's code

@throws \Exception
Installs the currencies .