Example #1
0
 /**
  * Add controller context as a child of root.
  * @param $name
  * @return $this
  */
 public function addControllerContext($name)
 {
     $this->controllerSettings = $this->pixie->config->get("vulninjection/{$name}");
     if (!is_array($this->controllerSettings)) {
         $this->controllerSettings = array();
     }
     $controllerContext = Context::createFromData($name, $this->controllerSettings, $this->config->getRootContext(), Context::TYPE_DEFAULT, $this->pixie);
     $this->config->addControllerContext($controllerContext);
     return $this;
 }