public function __construct() { $this->tmpDir = sys_get_temp_dir() . '/sf2_' . rand(1, 9999); if (!is_dir($this->tmpDir)) { if (false === @mkdir($this->tmpDir)) { die(sprintf('Unable to create a temporary directory (%s)', $this->tmpDir)); } } elseif (!is_writable($this->tmpDir)) { die(sprintf('Unable to write in a temporary directory (%s)', $this->tmpDir)); } parent::__construct('env', true); }
public function __construct($environment, $debug, $name) { parent::__construct($environment, $debug); $this->name = $name; }