protected static function fetch($pattern, $app = true)
    {
        if ($app) {
            return glob(self::$appPath.$pattern.'/*.php');
        } else {
            return glob(self::$frameworkPath.$pattern.'/*.php');
        }
    }