Example #1
0
 public function __construct(Context $context)
 {
     // Check that Twig is loaded
     if (!class_exists("Twig_Environment")) {
         throw new ResponseConfigException("Twig is not installed, Response class cannot be used.");
     }
     if ($context->getProject()->debugMode !== null) {
         $this->debug = $context->getProject()->debugMode;
     }
     parent::__construct($context);
 }