Minify_Env::__construct PHP Method

__construct() public method

public __construct ( $options = [] )
    public function __construct($options = array())
    {
        $options = array_merge(array('server' => $_SERVER, 'get' => $_GET, 'post' => $_POST, 'cookie' => $_COOKIE), $options);
        $this->server = $options['server'];
        if (empty($this->server['DOCUMENT_ROOT'])) {
            $this->server['DOCUMENT_ROOT'] = $this->computeDocRoot($options['server']);
        } else {
            $this->server['DOCUMENT_ROOT'] = rtrim($this->server['DOCUMENT_ROOT'], '/\\');
        }
        $this->server['DOCUMENT_ROOT'] = $this->normalizePath($this->server['DOCUMENT_ROOT']);
        $this->get = $options['get'];
        $this->post = $options['post'];
        $this->cookie = $options['cookie'];
    }