public function __construct($groupPath, $controller = '\\App\\Controllers\\Admin\\UniversalController', $groupName = '')
{
if (strpos($groupPath, '/') !== 0) {
$groupPath = '/' . $groupPath;
}
if (!class_exists($controller)) {
throw new \InvalidArgumentException("I don't find controller: " . $controller);
}
$this->groupPath = $groupPath;
$this->controller = $controller;
$a = explode('/', $groupPath);
$this->groupName = $groupName ? $groupName : substr(array_pop($a), 0, -1);
}