Example #1
0
 /**
  * Constructor.
  *
  * @param string            $environment    The environment name
  * @param Boolean           $debug          true to enable debug mode
  * @param string            $rootDir        The project root directory
  */
 public function __construct($environment, $debug, $rootDir = null)
 {
     $this->environment = $environment;
     $this->debug = (bool) $debug;
     $this->application = str_replace('Configuration', '', get_class($this));
     // initialize project configuration
     parent::__construct($rootDir = null, $this->application, $this->debug);
     // application settings are added now, so they can redefine any of the defaults!
     $app_settings = $this->getApplicationSettings();
     coreConfig::add($app_settings);
     // initialize application configuration
     $this->configure();
 }