public function setEnvironment($environment)
    {
        $this->environment = null === $environment ? '' : $environment;
        $this->flushAll();

        return $this;
    }
public function setEnvironment($environment)
    {
        $this->environment = null === $environment ? '' : $environment;
        $this->flushAll();

        return $this;
    }
public function setEnvironment ( $ environment ) { $ this -> environment = null === $ environment ? '' : $ environment ; $ this -> flushAll ( ) ; return $ this ; }
Set the version of the configuration files used in the file name format.

Triggers @see ConfigLoader::flushAll.

@see setFormat

@param string|null $environment

@return $this
Set the version of the configuration files used in the file name format .