public function save()
    {


        $component = Component::findOneByName('api');
        $options   = $component->options;

        if (!isset($options['auth_drivers'])) {
            $options['auth_drivers'] = [];
        }
        $options['auth_drivers'] = $this->driversToUpdate;
        $component->options      = $options;
        $component->save();

        $this->cache->forget(self::$cacheKey);

        $this->container->make('antares.memory')->make('component')->getHandler()->forgetCache();
        $this->driversToUpdate = [];
    }
public function save()
    {


        $component = Component::findOneByName('api');
        $options   = $component->options;

        if (!isset($options['auth_drivers'])) {
            $options['auth_drivers'] = [];
        }
        $options['auth_drivers'] = $this->driversToUpdate;
        $component->options      = $options;
        $component->save();

        $this->cache->forget(self::$cacheKey);

        $this->container->make('antares.memory')->make('component')->getHandler()->forgetCache();
        $this->driversToUpdate = [];
    }
public function save ( ) { $ component = Component :: findOneByName ( 'api' ) ; $ options = $ component -> options ; if ( ! isset ( $ options [ 'auth_drivers' ] ) ) { $ options [ 'auth_drivers' ] = [ ] ; } $ options [ 'auth_drivers' ] = $ this -> driversToUpdate ; $ component -> options = $ options ; $ component -> save ( ) ; $ this -> cache -> forget ( self :: $ cacheKey ) ; $ this -> container -> make ( 'antares.memory' ) -> make ( 'component' ) -> getHandler ( ) -> forgetCache ( ) ; $ this -> driversToUpdate = [ ] ; }
Save auth drivers in the storage.
Save auth drivers in the storage .