Exemple #1
0
 /**
  * Constructor.
  * 
  * @param DF_Web_Routing_Config_Action $config
  * @return DF_Web_Routing_Action
  */
 public function __construct($config)
 {
     if (!$config instanceof DF_Web_Routing_Config_Action) {
         throw new DF_Error_InvalidArgumentException("config", $config, DF_Web_Routing_Config_Action);
     }
     $ctrl = $config->get_controller();
     $this->controller_name = $ctrl->get_name();
     $this->controller_path = $ctrl->get_path();
     $this->name = $config->get_name();
     $this->path = $config->get_path();
     $this->args = $this->prepare_args($config);
     $this->init_local($config);
 }