protected function registerConfigurator()
    {
        $this->app->singleton('auja.database', function($app) {

            $config = $app['config']['auja-laravel'] ?: $app['config']['auja-laravel::config'];

            switch ($config['database']) {
                case 'mysql':
                    return new MySQLDatabaseHelper();
                    break;
                default:
                    throw new NoDatabaseHelperException('No Auja database helper for ' . $config['database']);
                    break;
            }
        });

        $this->app->bind('Label305\AujaLaravel\Database\DatabaseHelper', 'auja.database');

        $this->app->singleton('auja.configurator', function($app) {
            return new AujaConfigurator($app, $app['auja.database']);
        });

        $this->app->bind('Label305\AujaLaravel\Config\AujaConfigurator', 'auja.configurator');
    }
protected function registerConfigurator()
    {
        $this->app->singleton('auja.database', function($app) {

            $config = $app['config']['auja-laravel'] ?: $app['config']['auja-laravel::config'];

            switch ($config['database']) {
                case 'mysql':
                    return new MySQLDatabaseHelper();
                    break;
                default:
                    throw new NoDatabaseHelperException('No Auja database helper for ' . $config['database']);
                    break;
            }
        });

        $this->app->bind('Label305\AujaLaravel\Database\DatabaseHelper', 'auja.database');

        $this->app->singleton('auja.configurator', function($app) {
            return new AujaConfigurator($app, $app['auja.database']);
        });

        $this->app->bind('Label305\AujaLaravel\Config\AujaConfigurator', 'auja.configurator');
    }
protected function registerConfigurator ( ) { $ this -> app -> singleton ( 'auja.database' , function ( $ app ) { $ config = $ app [ 'config' ] [ 'auja-laravel' ] ? : $ app [ 'config' ] [ 'auja-laravel::config' ] ; switch ( $ config [ 'database' ] ) { case 'mysql' : return new MySQLDatabaseHelper ( ) ; break ; default : throw new NoDatabaseHelperException ( 'No Auja database helper for ' . $ config [ 'database' ] ) ; break ; } } ) ; $ this -> app -> bind ( 'Label305\AujaLaravel\Database\DatabaseHelper' , 'auja.database' ) ; $ this -> app -> singleton ( 'auja.configurator' , function ( $ app ) { return new AujaConfigurator ( $ app , $ app [ 'auja.database' ] ) ; } ) ; $ this -> app -> bind ( 'Label305\AujaLaravel\Config\AujaConfigurator' , 'auja.configurator' ) ; }
Register the auja configurator
Register the auja configurator