Example #1
0
 /**
  * Constructor.
  * 
  * @param string $name
  * @param array $config
  * @return DF_Web_Routing_Config_Controller
  */
 public function __construct($name, $config)
 {
     parent::__construct($name, $config);
     $this->actions = $this->prepare_actions();
     $this->namespace = $this->prepare_namespace();
     $this->path = $this->prepare_path();
     # Unsure how to remove the config if this class is ever subclassed
     unset($this->config);
 }
Example #2
0
 /**
  * Constructor.
  * 
  * @param string $name
  * @param array $config
  * @param DF_Web_Routing_Config_Controller $controller
  * @return DF_Web_Routing_Config_Action
  */
 public function __construct($name, $config, $controller)
 {
     parent::__construct($name, $config);
     $this->controller = $controller;
     $this->path = $this->prepare_path();
 }