src/WatsonBridgeServiceProvider.php
protected function registerDefaultBridge()
    {
        $this->app->bind(Bridge::class, function (Application $app) {
            /** @var Carpenter $carpenter */
            $carpenter = $app->make(Carpenter::class);
            /** @var Repository $config */
            $config = $app->make(Repository::class);

            return $carpenter->constructBridge(
                $config->get('watson-bridge.default_credentials'),
                null,
                $config->get('watson-bridge.default_auth_method')
            );
        });
    }
protected function registerDefaultBridge()
    {
        $this->app->bind(Bridge::class, function (Application $app) {
            /** @var Carpenter $carpenter */
            $carpenter = $app->make(Carpenter::class);
            /** @var Repository $config */
            $config = $app->make(Repository::class);

            return $carpenter->constructBridge(
                $config->get('watson-bridge.default_credentials'),
                null,
                $config->get('watson-bridge.default_auth_method')
            );
        });
    }
protected function registerDefaultBridge ( ) { $ this -> app -> bind ( Bridge :: class , function ( Application $ app ) { /** @var Carpenter $carpenter */ $ carpenter = $ app -> make ( Carpenter :: class ) ; /** @var Repository $config */ $ config = $ app -> make ( Repository :: class ) ; return $ carpenter -> constructBridge ( $ config -> get ( 'watson-bridge.default_credentials' ) , null , $ config -> get ( 'watson-bridge.default_auth_method' ) ) ; } ) ; }
Registers the Default Bridge.
Registers the Default Bridge .