We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, when we call getModuleHandler, it checks for the Handler class name that it uses the directory name:
$class = ucfirst(strtolower($module_dir)) . ucfirst($name) . 'Handler'; if (class_exists($class)) { $this->moduleHandlers[$module_dir][$name] = new $class($this->db()); }
Since we use Namespaces now, maybe we could change it to allow for only the class name + Handler:
$class = ucfirst(strtolower($module_dir)) . ucfirst($name) . 'Handler'; $classNew = ucfirst($name) . 'Handler'; if (class_exists($class)) { $this->moduleHandlers[$module_dir][$name] = new $class($this->db()); } elseif (class_exists($classNew)) { $this->moduleHandlers[$module_dir][$name] = new $classNew($this->db()); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, when we call getModuleHandler, it checks for the Handler class name that it uses the directory name:
Since we use Namespaces now, maybe we could change it to allow for only the class name + Handler:
The text was updated successfully, but these errors were encountered: