public static function getClass($controller)
    {
        $config = Config::getInstance();
        $siteModules = array_reverse($config->get('ModuleManager')->getEnabled());

        foreach ($siteModules as $namespace => $modules) {
            foreach ($modules as $module) {
                $class = "\\{$namespace}\\{$module}\\Admin\\Controller\\{$controller}Controller";

                if (class_exists($class)) {
                    return $class;
                }
            }
        }

        return null;
    }
public static function getClass($controller)
    {
        $config = Config::getInstance();
        $siteModules = array_reverse($config->get('ModuleManager')->getEnabled());

        foreach ($siteModules as $namespace => $modules) {
            foreach ($modules as $module) {
                $class = "\\{$namespace}\\{$module}\\Admin\\Controller\\{$controller}Controller";

                if (class_exists($class)) {
                    return $class;
                }
            }
        }

        return null;
    }
public static function getClass ( $ controller ) { $ config = Config :: getInstance ( ) ; $ siteModules = array_reverse ( $ config -> get ( 'ModuleManager' ) -> getEnabled ( ) ) ; foreach ( $ siteModules as $ namespace => $ modules ) { foreach ( $ modules as $ module ) { $ class = "\\{$namespace}\\{$module}\\Admin\\Controller\\{$controller}Controller" ; if ( class_exists ( $ class ) ) { return $ class ; } } } return null ; }
Get the controller's class

@param $controller
@return null|string
Get the controller s class