public function register()
    {
        parent::register();

        $this->mergeConfigFrom(__DIR__ . '/../resources/config/config.php', 'antares/api::config');

        $this->app->singleton(PresenterFactory::class, function($app) {
            $config = config('antares/api::config', []);
            return new PresenterFactory($app, $config);
        });

        $this->app->singleton(AuthProviderService::class, function($app) {
            $config = config('antares/api::config.auth.drivers', []);
            return new AuthProviderService($app, $app['cache.store'], $config);
        });
    }
public function register()
    {
        parent::register();

        $this->mergeConfigFrom(__DIR__ . '/../resources/config/config.php', 'antares/api::config');

        $this->app->singleton(PresenterFactory::class, function($app) {
            $config = config('antares/api::config', []);
            return new PresenterFactory($app, $config);
        });

        $this->app->singleton(AuthProviderService::class, function($app) {
            $config = config('antares/api::config.auth.drivers', []);
            return new AuthProviderService($app, $app['cache.store'], $config);
        });
    }
public function register ( ) { parent :: register ( ) ; $ this -> mergeConfigFrom ( __DIR__ . '/../resources/config/config.php' , 'antares/api::config' ) ; $ this -> app -> singleton ( PresenterFactory :: class , function ( $ app ) { $ config = config ( 'antares/api::config' , [ ] ) ; return new PresenterFactory ( $ app , $ config ) ; } ) ; $ this -> app -> singleton ( AuthProviderService :: class , function ( $ app ) { $ config = config ( 'antares/api::config.auth.drivers' , [ ] ) ; return new AuthProviderService ( $ app , $ app [ 'cache.store' ] , $ config ) ; } ) ; }
Registers service provider
Registers service provider