Esempio n. 1
0
 /**
  * Create new application
  *
  * @param string  environment The environment
  * @param boolean debug Whether to enable debugging or not
  * @param array config Optional config settings.
  */
 public function __construct($environment = 'prod', $debug = false, $context = null)
 {
     $this->context = $context;
     // @todo FIXME: Only save it the first time. this gets called again via ConfigCache
     if (null === Runtime::getContext()) {
         Runtime::setContext($context);
     }
     parent::__construct($environment, $debug);
 }