public static function getAllMethods($folder, $namespace = array())
    {
        self::setClassFolder($folder);
        $namespaces_list = is_array($namespace) ? $namespace : array($namespace);
        $methods = array();

        $controllers = self::getControllersList(self::$class_folders, $namespaces_list);
        foreach ($controllers as $c) {
            if (!class_exists($c)) {
                self::loadController($c);
            }
            $methods[$c] = self::getControllerMethods($c);
        }

        return $methods;
    }