public function update(ConfigurationUpdaterListener $listener, array $input)
    {
        try {

            foreach (array_get($input, 'drivers', []) as $driver => $config) {
                $this->authProviderService->updateDriver($driver, $config);
                event('api.driver.' . $driver . '.update', [$input, $this->authProviderService]);
            }

            $this->authProviderService->save();
        } catch (Exception $e) {
            Log::emergency($e);
            return $listener->updateAuthFailed(['error' => $e->getMessage()]);
        }

        return $listener->authUpdated();
    }
public function update(ConfigurationUpdaterListener $listener, array $input)
    {
        try {

            foreach (array_get($input, 'drivers', []) as $driver => $config) {
                $this->authProviderService->updateDriver($driver, $config);
                event('api.driver.' . $driver . '.update', [$input, $this->authProviderService]);
            }

            $this->authProviderService->save();
        } catch (Exception $e) {
            Log::emergency($e);
            return $listener->updateAuthFailed(['error' => $e->getMessage()]);
        }

        return $listener->authUpdated();
    }
public function update ( ConfigurationUpdaterListener $ listener , array $ input ) { try { foreach ( array_get ( $ input , 'drivers' , [ ] ) as $ driver => $ config ) { $ this -> authProviderService -> updateDriver ( $ driver , $ config ) ; event ( 'api.driver.' . $ driver . '.update' , [ $ input , $ this -> authProviderService ] ) ; } $ this -> authProviderService -> save ( ) ; } catch ( Exception $ e ) { Log :: emergency ( $ e ) ; return $ listener -> updateAuthFailed ( [ 'error' => $ e -> getMessage ( ) ] ) ; } return $ listener -> authUpdated ( ) ; }
Updates api providers configuration

@param ConfigurationUpdaterListener $listener
@param array $input
@return type
Updates api providers configuration