public function __construct($rootDir, $debug = false, array $parameters = array())
{
parent::__construct($parameters);
$this['root_dir'] = $rootDir;
$this['debug'] = $debug;
$this->register(new ConfigServiceProvider());
$this->register(new UrlGeneratorServiceProvider());
$this->register(new RoutingServiceProvider());
$this->register(new TwigServiceProvider());
$this->register(new FlintServiceProvider());
}
public function __construct($rootDir, $env, $debug = false) { parent::__construct($rootDir, $debug, ['env' => $env]); $this->init($env, $debug); }