public function setAdapters($adapters)
    {
        $this->adapterClasses = [];
        $this->adapters = [];
        foreach ($adapters as $name => $adapter) {
            $this->setAdapter($name, $adapter);
        }
    }
public function setAdapters($adapters)
    {
        $this->adapterClasses = [];
        $this->adapters = [];
        foreach ($adapters as $name => $adapter) {
            $this->setAdapter($name, $adapter);
        }
    }
public function setAdapters ( $ adapters ) { $ this -> adapterClasses = [ ] ; $ this -> adapters = [ ] ; foreach ( $ adapters as $ name => $ adapter ) { $ this -> setAdapter ( $ name , $ adapter ) ; } }
Reset existing adapters and set new adapters for all datasources.

@param array $adapters A list of adapters
Reset existing adapters and set new adapters for all datasources .