Constructor.
@api
string $environment The environment:
Boolean $debug Whether to enable debugging or not:
public function __construct($environment, $debug) {
$this->environment = $environment;
$this->debug = (bool) $debug;
$this->booted = false;
$this->rootDir = $this
->getRootDir();
$this->name = $this
->getName();
$this->classes = array();
if ($this->debug) {
$this->startTime = microtime(true);
}
$this
->init();
}