public function registerCurrency()
    {
        $this->app->singleton('currency', function ($app) {

            $this->app['events']->fire('currency.beforeRegister', [$this]);

            return new Currency(
                $app->config->get('currency', []),
                $app['cache']
            );
        });
    }
public function registerCurrency()
    {
        $this->app->singleton('currency', function ($app) {

            $this->app['events']->fire('currency.beforeRegister', [$this]);

            return new Currency(
                $app->config->get('currency', []),
                $app['cache']
            );
        });
    }
public function registerCurrency ( ) { $ this -> app -> singleton ( 'currency' , function ( $ app ) { $ this -> app [ 'events' ] -> fire ( 'currency.beforeRegister' , [ $ this ] ) ; return new Currency ( $ app -> config -> get ( 'currency' , [ ] ) , $ app [ 'cache' ] ) ; } ) ; }
Register currency provider.

@return void
Register currency provider .