public function getEnvironment($config = null)
    {
        if ( ! $this->environment) {
            if (null == $config) {
                $config = $this->getConfig();
            }

            $this->environment = new Environment($config);
        }

        return $this->environment;
    }
public function getEnvironment($config = null)
    {
        if ( ! $this->environment) {
            if (null == $config) {
                $config = $this->getConfig();
            }

            $this->environment = new Environment($config);
        }

        return $this->environment;
    }
public function getEnvironment ( $ config = null ) { if ( ! $ this -> environment ) { if ( null == $ config ) { $ config = $ this -> getConfig ( ) ; } $ this -> environment = new Environment ( $ config ) ; } return $ this -> environment ; }
Get environment object.

@param Config $config Deprecated 4.0.0, command config will be used instead.

@return Environment
Get environment object .