示例#1
0
 /**
  * Create a new extended Phalcon group.
  * 
  * @param 	string   $prefix            
  * @param 	mixed    $paths             
  * @param 	callable $callback
  * @return  void 
  */
 public function __construct($prefix, $paths = null, callable $callback, $removeExtraSlashes = true)
 {
     parent::__construct($paths);
     $this->removeExtraSlashes = $removeExtraSlashes;
     $this->setPrefix($prefix);
     call_user_func($callback, $this);
 }
示例#2
0
 public function __construct($config)
 {
     $this->controllerDefault = $config->router->controllerDefault;
     $this->actionDefault = $config->router->actionDefault;
     parent::__construct();
 }
示例#3
0
 public function __construct($paths = null, DiInterface $di = null)
 {
     $module = isset($paths['module']) ? $paths['module'] : 'Default';
     parent::__construct(['module' => $module, $di]);
 }
示例#4
0
 public function __construct($paths = null)
 {
     parent::__construct($paths);
 }