public function override(array $preferences)
    {

        // Store retrieved data in class and afterwards in store(s)
        $this->locale   = $preferences['locale'];
        $this->weight   = $preferences['weight'];
        $this->language = $preferences['language'];
        $this->country  = $preferences['country'];

        $this->writePreferences($preferences);

        return $this;
    }
public function override(array $preferences)
    {

        // Store retrieved data in class and afterwards in store(s)
        $this->locale   = $preferences['locale'];
        $this->weight   = $preferences['weight'];
        $this->language = $preferences['language'];
        $this->country  = $preferences['country'];

        $this->writePreferences($preferences);

        return $this;
    }
public function override ( array $ preferences ) { // Store retrieved data in class and afterwards in store(s) $ this -> locale = $ preferences [ 'locale' ] ; $ this -> weight = $ preferences [ 'weight' ] ; $ this -> language = $ preferences [ 'language' ] ; $ this -> country = $ preferences [ 'country' ] ; $ this -> writePreferences ( $ preferences ) ; return $ this ; }
Overrides locale configuration and storages it to configured storages.

@param array $preferences The preferences to store

@author Benjamin Carl <opensource@clickalicious.de>

@return Doozr_I18n_Service_Detector Instance for chaining
Overrides locale configuration and storages it to configured storages .