src/Laravel/ConverterServiceProvider.php
protected function registerConverter()
    {
        $this->app->singleton('converter', function ($app) {
            $measurements = $app['config']->get('cartalyst.converter.measurements');

            $converter = new Converter($app['converter.exchanger']);
            $converter->setMeasurements($measurements);

            return $converter;
        });
    }
protected function registerConverter()
    {
        $this->app->singleton('converter', function ($app) {
            $measurements = $app['config']->get('cartalyst.converter.measurements');

            $converter = new Converter($app['converter.exchanger']);
            $converter->setMeasurements($measurements);

            return $converter;
        });
    }
protected function registerConverter ( ) { $ this -> app -> singleton ( 'converter' , function ( $ app ) { $ measurements = $ app [ 'config' ] -> get ( 'cartalyst.converter.measurements' ) ; $ converter = new Converter ( $ app [ 'converter.exchanger' ] ) ; $ converter -> setMeasurements ( $ measurements ) ; return $ converter ; } ) ; }
Register the Converter.

@return void
Register the Converter .