/** * 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); }
public function __construct($config) { $this->controllerDefault = $config->router->controllerDefault; $this->actionDefault = $config->router->actionDefault; parent::__construct(); }
public function __construct($paths = null, DiInterface $di = null) { $module = isset($paths['module']) ? $paths['module'] : 'Default'; parent::__construct(['module' => $module, $di]); }
public function __construct($paths = null) { parent::__construct($paths); }